-
Notifications
You must be signed in to change notification settings - Fork 10
Deploying
Rechner Fox edited this page Feb 27, 2020
·
1 revision
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
🎊
Same as stage, but cd APIS
instead at step 2.