collectstatic

This commit is contained in:
Kenneth Reitz
2012-01-18 16:58:26 -05:00
parent 034fbc1c8f
commit ff893b7a72
+12 -6
View File
@@ -48,14 +48,20 @@ except Exception:
EOF
# Compile assets.
# Collect static files.
set +e
echo "-----> Collecting static files"
OUT=$(python $PROJECT/manage.py collectstatic --noinput )
OUT=$(python $PROJECT/manage.py collectstatic --noinput 2>&1)
[ $? -ne 0 ] && STATIC_FAILED=1
if [ "$STATIC_FAILED" ]; then
echo " ! Error running manage.py collectstatic. See http://devcenter.heroku.com/articles/django-assets for more info."
else
echo "$OUT" | indent
fi
[ $? -ne 0 ] && {
echo " ! Error running manage.py collectstatic. See http://devcenter.heroku.com/articles/django-assets for more info."
echo "$OUT" | indent >&2
}
set -e