s030 - Nginx, gunicorn, supervisord, PostgeSQL, solr, and celery
- Login to s030.
- Navigate to
/home/okfn/openspending/pyenv/src/openspending
- Do
git pull
.
If there are no db migrations to run, skip to restarting gunicorn.
- Navigate to
/home/okfn/openspending/pyenv
- Run
source bin/activate
to activate the virtualenv - Run
ostool site.ini db migrate
to run migrations
Restart the gunicorn process
- Run
sudo supervisorctl -c /etc/supervisor/supervisord.conf
- Run
restart openspending
in the supervisord console