Skip to content

Instantly share code, notes, and snippets.

@nigelbabu
Created March 9, 2013 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nigelbabu/c4254729e70e0c525059 to your computer and use it in GitHub Desktop.
Save nigelbabu/c4254729e70e0c525059 to your computer and use it in GitHub Desktop.
OpenSpending Staging Deployment

OpenSpending Deployment Proces

Servers

s030 - Nginx, gunicorn, supervisord, PostgeSQL, solr, and celery

Deployment Process

  1. Login to s030.
  2. Navigate to /home/okfn/openspending/pyenv/src/openspending
  3. Do git pull.

If there are no db migrations to run, skip to restarting gunicorn.

  1. Navigate to /home/okfn/openspending/pyenv
  2. Run source bin/activate to activate the virtualenv
  3. Run ostool site.ini db migrate to run migrations

Restart the gunicorn process

  1. Run sudo supervisorctl -c /etc/supervisor/supervisord.conf
  2. Run restart openspending in the supervisord console
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment