This document describes how to deploy new Git code updates to the production site.
- Push local changes to the Git repo.
- SSH into server, cd into
upstate_tech_cal_servicefolder. git pullchanges from the Git repo.- Make sure that config.ini is up to date (make edits as needed).
- Reload daemon:
sudo systemctl daemon-reload - Restart gunicorn:
sudo systemctl restart gunicorn - Restart nginx:
sudo systemctl restart nginx - Run the app, either manually
pipenv shell && python update_cal_data.py && exitor when the next cronjob runs