From: Charles Connell Date: Wed, 23 Apr 2014 17:38:11 +0000 (-0400) Subject: Add compress step to deply X-Git-Tag: release-20150131~131 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1a386801caf65050574e38783eece5d66f738ded;p=oweals%2Fkarmaworld.git Add compress step to deply --- 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