From 1a386801caf65050574e38783eece5d66f738ded Mon Sep 17 00:00:00 2001 From: Charles Connell Date: Wed, 23 Apr 2014 13:38:11 -0400 Subject: [PATCH] Add compress step to deply --- fabfile.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/fabfile.py b/fabfile.py index 88dc5bc..bcfa331 100644 --- a/fabfile.py +++ b/fabfile.py @@ -85,6 +85,16 @@ def collect_static(): virtenv_exec('{0}/manage.py collectstatic --noinput'.format(env.code_root)) +####### Compress Static Files +@task +def compress_static(): + """ + Compress static files + """ + + virtenv_exec('{0}/manage.py compress'.format(env.code_root)) + + ####### Run Dev Server @task def dev_server(): @@ -297,6 +307,7 @@ def deploy(): update_code() update_reqs() syncdb() + compress_static() collect_static() restart_supervisord() ########## END COMMANDS -- 2.25.1