Skip to content

Instantly share code, notes, and snippets.

@niftynei
Created October 19, 2015 21:26
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 niftynei/5bfdcd285b598ec16189 to your computer and use it in GitHub Desktop.
Save niftynei/5bfdcd285b598ec16189 to your computer and use it in GitHub Desktop.
Django Deploy Steps
0. # make a snapshot of prod in EC2. jic.
1. # rsync your file from staging
2. sudo django-admin.py collectstatic -v0 --noinput
3. sudo django-admin.py syncdb
4. sudo vim webapp/graphite/local_settings.py ## TODO: move stuff to env vars
5. sudo apachectl -k stop
6. sudo apachectl -k start
7. # delete your snapshot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment