Site that displays status history of FFXIV worlds. Includes maintenance, preference state and ability to character new characters on each world. Live site can be found here: ffxivstatus.sei.place.
- create
fws_site/settings/prod_secrets.pyfile and define add your own secret key there withSECRET_KEY = '<your-secret-key>'. You can usedjango.core.management.utils.get_random_secret_key(). - Your website hostname needs to go in
ALLOWED_HOSTSlist in the appropriate settings file underfws_site/settings/(e.g.prod.py) and in theserver_namedirective indeployment/fws_nginx.conf. Ideally it should be the only thing in those lists.
-
Install
docker,python,pip, andpipenvif you haven't already. This varies by distribution and preference. -
Install dependencies from Pipfile. Alternatively only install django, since it's the only one currently required.
# Install all dependencies pipenv install # Only install django pipenv install django
-
Prepare project by running
init.shscript. This will create required directories and files for deployment../init.sh
- Only docker is required beyond this step, everything else installed in steps 1 and 2 can be safely removed.
-
Initialize database by running:
docker compose --file docker-compose-prod-manage.yml run manage migrate docker compose --file docker-compose-prod-manage.yml run manage loaddata --app ffxivws --format json worlds.fixture.json
-
Start the web server:
docker compose --file docker-compose-prod-revproxy.yml up --remove-orphans
- use
--file docker-compose-prod.ymlinstead if you're going to set up your own reverse proxy - you may append
-doption at the end of that command to run it in detached mode
- use