Commit 031c9d57 authored by Kenneth Reitz's avatar Kenneth Reitz

cleanup output

parent b0568b5f
...@@ -27,7 +27,7 @@ bpwatch start collectstatic # metrics collection ...@@ -27,7 +27,7 @@ bpwatch start collectstatic # metrics collection
if [ ! "$DISABLE_COLLECTSTATIC" ] && [ -f "$MANAGE_FILE" ] && [ "$DJANGO_INSTALLED" ]; then if [ ! "$DISABLE_COLLECTSTATIC" ] && [ -f "$MANAGE_FILE" ] && [ "$DJANGO_INSTALLED" ]; then
set +e set +e
echo "-----> Preparing static assets with 'collectstatic'." echo "-----> Preparing static assets with 'collectstatic'"
# Run collectstatic, cleanup some of the noisy output. # Run collectstatic, cleanup some of the noisy output.
python $MANAGE_FILE collectstatic --noinput 2>&1 | sed '/^Copying/d;/^$/d;/^ /d' | indent python $MANAGE_FILE collectstatic --noinput 2>&1 | sed '/^Copying/d;/^$/d;/^ /d' | indent
...@@ -37,6 +37,7 @@ if [ ! "$DISABLE_COLLECTSTATIC" ] && [ -f "$MANAGE_FILE" ] && [ "$DJANGO_INSTALL ...@@ -37,6 +37,7 @@ if [ ! "$DISABLE_COLLECTSTATIC" ] && [ -f "$MANAGE_FILE" ] && [ "$DJANGO_INSTALL
# Display a warning if collectstatic failed. # Display a warning if collectstatic failed.
[ $COLLECTSTATIC_STATUS -ne 0 ] && { [ $COLLECTSTATIC_STATUS -ne 0 ] && {
echo
echo " ! Error while runnning '$ python $MANAGE_FILE collectstatic --noinput'." echo " ! Error while runnning '$ python $MANAGE_FILE collectstatic --noinput'."
echo " See traceback above for more details." echo " See traceback above for more details."
echo " More info: http://devcenter.heroku.com/articles/django-assets" echo " More info: http://devcenter.heroku.com/articles/django-assets"
......
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