At this point I want to say a huge thanks to Andrew Godwin and the whole Django team. Up until Django 1.7, I used to have a whole long section, entirely devoted to migrations. Migrations now “just work”, so I was able to drop it altogether. Thanks for all the great work gang!
$ cd deploy_tools $ fab deploy:email@example.com Disconnecting from superlists-staging.ottg.eu... done.
elspeth@server:$ sudo restart gunicorn-superlists-staging.ottg.eu
And run the tests against staging:
$ python3 manage.py test functional_tests --liveserver=superlists-staging.ottg.eu OK
$ fab deploy:firstname.lastname@example.org
At this point you have two choices:
$ git tag -f LIVE # needs the -f because we are replacing the old tag $ export TAG=`date +DEPLOYED-%F/%H%M` $ git tag $TAG $ git push -f origin LIVE $TAG
Some people don’t like to use
push -f and update an existing tag, and
will instead some kind of version number to tag their releases. Use
whatever works for you.