Permalink
Browse files

Add submodule commands to deploy

  • Loading branch information...
1 parent 41fc513 commit 70b94fc64907b3b02bf401770278e330031d131f @paulosman paulosman committed Aug 31, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 fabfile.py
View
@@ -60,11 +60,19 @@ def new_branch(branch):
restart_celeryd()
+def submodules():
+ with cd(env.proj_root):
+ run('git submodule init')
+ run('git submodule sync')
+ run('git submodule update')
+
+
def deploy(branch):
"""Deploy latest code from ``branch``."""
update(branch)
syncdb()
migrate()
compress()
+ submodules()
restart_apache()
restart_celeryd()

0 comments on commit 70b94fc

Please sign in to comment.