📘 This page documents how to put Arbitre live on a server running NixOS.
NixOS is a Linux distribution built on top of the Nix package manager. It uses declarative configuration and allows reliable system upgrades.
In development, Arbitre has been deployed using NixOS.
Follow the instructions in config/README.md
Then, run :
ansible-playbook deploy.yaml -i inventory.yaml
Navigate to the /srv/arbitre directory and run git pull to ensure that the latest version of the code is pulled from the Git repository.
Navigate to the frontend directory.
Check the frontend’s .env file and compare it to the .env.example file to ensure that the environment variables are properly set up.
run npm run build to build the frontend of the platform.
Navigate to the backend directory.
Check the backend’s .env file and compare it to the .env.example file to ensure that the environment variables are properly set up.
Run python manage.py makemigrations to create new migrations based on the changes made to the models.
Run python manage.py migrate to apply the migrations to the database.
Run python manage.py collectstatic to collect the static files from all the applications. They will automatically be put into the STATIC_ROOT directory.
Finally, restart the daphne, celery, celerybeat, and nginx services by running sudo systemctl restart <service-name> for each of them.
Navigate to /backend , and run python [manage.py](<http://manage.py>) createsuperuser
The runners need an API key to be able to access data from the API. Create the API Key from the Django admin panel and write it in /backend/.env, under API_KEY=
Table of Contents