Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added a migrate command to the fabfile.

Don't know how this wasn't here yet...
  • Loading branch information...
commit 18fce3d08b896e514060457f0c289f1d43806a87 1 parent b201482
@jacobian jacobian authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 fabfile.py
View
8 fabfile.py
@@ -18,6 +18,7 @@ def full_deploy():
"""
deploy_code()
update_dependencies()
+ migrate()
apache("restart")
memcached("restart")
@@ -60,6 +61,13 @@ def update_dependencies():
sudo('%s -q install -U pip' % pip)
sudo('%s -q install -r %s' % (pip, reqs))
+def migrate():
+ """
+ Run migrate/syncdb.
+ """
+ managepy('syncdb')
+ managepy('migrate')
+
def update_docs():
"""
Force an update of the docs on the server.
Please sign in to comment.
Something went wrong with that request. Please try again.