Commits

Mikhail Korobov committed 00cb9ed

'fab up' no longer runs 'compress' command, it now has before_restart callback instead

Comments (0)

Files changed (1)

fab_deploy/deploy.py

     if restart:
         apache.touch()
 
-def up(branch=None):
+def up(branch=None, before_restart=lambda: None):
     """ Runs vcs ``up`` or ``checkout`` command on server and reloads
     mod_wsgi process. """
     utils.delete_pyc()
     with cd('src/' + env.conf['INSTANCE_NAME']):
         vcs.up(branch)
-    dj_cmd.compress()
+    before_restart()
     apache.touch()
 
 def setup_web_server():