Commit a21dbc2d authored by Kenneth Reitz's avatar Kenneth Reitz

run collectstatic

parent cf5a9d26
...@@ -2,13 +2,25 @@ ...@@ -2,13 +2,25 @@
set +e set +e
# Compile assets. # Check if collectstatic is configured.
echo "-----> Collecting static files" python $PROJECT/manage.py collectstatic --help &> /dev/null && RUN_COLLECTSTATIC=true
python $PROJECT/manage.py collectstatic --noinput | indent
[ $? -ne 0 ] && { # Don't raise errors if SILENCE_COLLECTSTATIC is set.
if [ ! "$SILENCE_COLLECTSTATIC" ]]; then
set -e
fi
# Compile assets if collectstatic appears to be .
if [ "$RUN_COLLECTSTATIC" ]; then
echo "-----> Collecting static files"
python $PROJECT/manage.py collectstatic --noinput | indent
[ $? -ne 0 ] && {
echo " ! Error running manage.py collectstatic. More info:" echo " ! Error running manage.py collectstatic. More info:"
echo " ! http://devcenter.heroku.com/articles/django-assets" echo " http://devcenter.heroku.com/articles/django-assets"
} }
else
echo " ! Django collecstatic is not configured. Learn more:"
echo " http://devcenter.heroku.com/articles/django-assets"
fi
set -e
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment