Skip to content
Snippets Groups Projects
Commit c0b4a0e3 authored by Kenneth Reitz's avatar Kenneth Reitz
Browse files

collectstatic

#25
parent 8566a650
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash
echo "-----> Django settings injection"
echo "-----> Injecting Django settings..."
SETTINGS_FILE=$(ls **/settings.py | head -1)
PROJECT=$(dirname $SETTINGS_FILE)
......@@ -46,3 +46,14 @@ except Exception:
print 'Unexpected error:', sys.exc_info()
EOF
# Compile assets.
echo "-----> Collecting static files"
python $PROJECT/manage.py collectstatic --noinput | indent
[ $? -ne 0 ] && {
echo " ! Error running manage.py collectstatic. See http://devcenter.heroku.com/articles/django-assets for more info."
}
set -e
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment