- Push local changes to remote repo.
- SSH into server, cd into
upstate_tech_cal_service
folder. - Pull changes from remote repo.
- Make
update_cal_data.py
executable:chmod +x update_cal_data.py
- Make sure that config.ini is up to date (make edits with nano).
- Reload daemon:
sudo systemctl daemon-reload
- Restart gunicorn:
sudo systemctl restart gunicorn
- Restart nginx:
sudo systemctl restart nginx
Helpful information here: https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04