diff --git a/bin/steps/django/collectstatic b/bin/steps/django/collectstatic index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..28ff995e1ad11951f2ebfc99f01c9415244b7790 100755 --- a/bin/steps/django/collectstatic +++ b/bin/steps/django/collectstatic @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +# Compile assets. +echo "-----> Collecting static files" +python $PROJECT/manage.py collectstatic --noinput | indent + +[ $? -ne 0 ] && { + echo " ! Error running manage.py collectstatic. More info:" + echo " ! http://devcenter.heroku.com/articles/django-assets" +} + +set -e \ No newline at end of file