/fornever.me

Friedrich von Never: Engineer, Programmer, Gentleman.

Primary LanguageF#MIT LicenseMIT

fornever.me: Engineer, Programmer, Gentleman Status Aquana Docker Image

This is the fornever.me site source code. It uses ForneverMind — a simple homemade blog engine mainly written in F# programming language.

Features

  • ASP.NET Core web engine.
  • Main pages layout in Razor.
  • Blog posts are written in Markdown.
  • Source code highlighting is provided by highlight.js on the server side.
  • There's a Plans page that provides a daily quote from the Evil Overlord List.
    • A quote for each day is stored in a LiteDB database.
  • Disqus comment system.

Contributing

To know how to develop the application locally, read the contributor guide.

Deployment

To install the application from Docker, run the following command:

$ docker run -d \
    --restart unless-stopped \
    -p:$PORT:80 \
    --name $NAME \
    -v $DATA:/data \
    revenrof/fornever.me:$VERSION

Where

  • $PORT is the port you want to expose the application on
  • $NAME is the container name
  • $VERSION is the version you want to deploy, or latest for the latest available one
  • $DATA is the database directory

For example, a production server may use the following settings (note this command uses the Bash syntax; adapt for your shell if necessary):

PORT=5001
NAME=fornevermind
VERSION=latest
DATA=/opt/fornever/fornever.me/data
docker pull revenrof/fornever.me:$VERSION
docker rm -f $NAME
docker run -d \
    --restart unless-stopped \
    -p $PORT:80 \
    --name $NAME \
    -v $DATA:/data \
    revenrof/fornever.me:$VERSION

Documentation