From ff893b7a72265d5b13e043cf166abb742a4dc90d Mon Sep 17 00:00:00 2001
From: Kenneth Reitz <me@kennethreitz.com>
Date: Wed, 18 Jan 2012 16:58:26 -0500
Subject: [PATCH] collectstatic

---
 bin/steps/django | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/bin/steps/django b/bin/steps/django
index 23a9203a..2d24c9d7 100755
--- a/bin/steps/django
+++ b/bin/steps/django
@@ -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
-- 
GitLab