Skip to content

Instantly share code, notes, and snippets.

@maxpoletaev
Created March 25, 2015 13:14
Show Gist options
  • Save maxpoletaev/a8961454c18babbd1c5a to your computer and use it in GitHub Desktop.
Save maxpoletaev/a8961454c18babbd1c5a to your computer and use it in GitHub Desktop.
Django Shipit
host='user@host'
path='/home/path_to_project'
[deploy]
hg pull
hg update
LD_LIBRARY_PATH=/usr/local/lib \
python3.4 manage.py migrate
[reload]
touch main/wsgi.py
if [ -f /tmp/gunicorn_project.pid ]; then
kill -HUP `cat /tmp/gunicorn_project.pid`
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment