From: Lucian Ursu Date: Fri, 22 Feb 2013 14:35:37 +0000 (+0200) Subject: Split the static files management into several tasks. X-Git-Tag: release-20150131~498^2~2^2~15 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d39b95e42bcd23561628c581259af1e5a5280c06;p=oweals%2Fkarmaworld.git Split the static files management into several tasks. --- diff --git a/fabfile.py b/fabfile.py index da1e5e1..672267b 100755 --- a/fabfile.py +++ b/fabfile.py @@ -78,9 +78,32 @@ def syncdb(): ########## FILE MANAGEMENT @task -def collectstatic(): +def manage_static(): + collect_static() + compress_static() + upload_static() + + +@task +def collect_static(): """Collect all static files, and copy them to S3 for production usage.""" env.run('python manage.py collectstatic --noinput') + + +@task +def compress_static(): + """ + Compresses the static files. + """ + pass + + +@task +def upload_static(): + """ + Uploads the static files to the specified host. + """ + pass ########## END FILE MANAGEMENT