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_service
folder. git pull
changes 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 && exit
or when the next cronjob runs