Commits

Albert O'Connor committed 282d641

Add update_static as separate command

  • Participants
  • Parent commits f3ff4f5

Comments (0)

Files changed (1)

     sudo("%(project_virtualenv)s/bin/pip install -r %(project_django_root)s/requirements.txt" % env)
     
     with cd(os.path.join(env.project_django_root, "%(project_subdir)s"%env)):
-        sudo("%(project_virtualenv)s/bin/python manage.py collectstatic --noinput"%env)
         sudo("%(project_virtualenv)s/bin/python manage.py syncdb"%env)
         sudo("%(project_virtualenv)s/bin/python manage.py migrate"%env)
 
+def update_static():
+    with cd(os.path.join(env.project_django_root, "%(project_subdir)s"%env)):
+        sudo("%(project_virtualenv)s/bin/python manage.py collectstatic --noinput"%env)
+
 def reload():
     "Reload gunicorn"