Setting up a production environment
IMPORTANT: We only officially support Docker.
Creating the skeleton
mkdir fukkireta
cd fukkireta
curl https://git.lethal.horse/16px.eu/fukkireta/raw/branch/master/compose.yml > ./compose.yml
curl https://git.lethal.horse/16px.eu/fukkireta/raw/branch/master/nginx.conf > ./nginx.conf
curl https://git.lethal.horse/16px.eu/fukkireta/raw/branch/master/fukkireta/settings.py > ./settings.py
mkdir staticfiles
touch db.sqlite3
Modifying environment variables
It is very important to change the SECRET_KEY variable inside of compose.yml to something random. Either smash your head against a keyboard or run echo $RANDOM | sha256sum. Whichever works.
Starting the server
docker compose up -d
It will now listen on port 8000. Feel free to setup a reverse proxy or use Cloudflare Tunnels.
Updating to a newer version
docker compose pull
docker compose up --force-recreate --build -d
docker image prune -f