Skip to content

Deploying

Rechner Fox edited this page Feb 27, 2020 · 1 revision

Stage

sudo -u apis -i
cd stage/

# Grab the version you want
git pull origin production

# Install any extra dependencies
pip install -r requirements.txt

# Enable maintenance mode (optional - recommended for complex deploys & database migrations)
./manage.py maintenance_mode on

# Migrate the database
./manage.py migrate

# Collect static resources
./manage.py collectstatic --noinput

# Kick over apache
sudo systemctl apache2 reload

# Disable maintenance mode
./manage.py maintenance_mode off

🎊

Production

Same as stage, but cd APIS instead at step 2.

Clone this wiki locally