Skip to content

Commit

Permalink
Added a migrate command to the fabfile.
Browse files Browse the repository at this point in the history
Don't know how this wasn't here yet...
  • Loading branch information
jacobian committed Sep 11, 2011
1 parent b201482 commit 18fce3d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions fabfile.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def full_deploy():
""" """
deploy_code() deploy_code()
update_dependencies() update_dependencies()
migrate()
apache("restart") apache("restart")
memcached("restart") memcached("restart")


Expand Down Expand Up @@ -60,6 +61,13 @@ def update_dependencies():
sudo('%s -q install -U pip' % pip) sudo('%s -q install -U pip' % pip)
sudo('%s -q install -r %s' % (pip, reqs)) sudo('%s -q install -r %s' % (pip, reqs))


def migrate():
"""
Run migrate/syncdb.
"""
managepy('syncdb')
managepy('migrate')

def update_docs(): def update_docs():
""" """
Force an update of the docs on the server. Force an update of the docs on the server.
Expand Down

0 comments on commit 18fce3d

Please sign in to comment.