Permalink
Browse files

Update deploy scripts to use staticfiles.

  • Loading branch information...
mythmon committed Nov 15, 2012
1 parent 12c1c2c commit 1fcbe35c6a6261985dc9f1a9e5d452291bab0b4f
Showing with 8 additions and 0 deletions.
  1. +2 −0 scripts/update_prod.sh
  2. +2 −0 scripts/update_staging.sh
  3. +4 −0 settings/default.py
View
@@ -40,6 +40,8 @@ cd $SYNC_DIR
# Pull in highcharts.src.js - our lawyers make us do this.
/usr/bin/python26 $INPUT_DIR/manage.py cron get_highcharts
/usr/bin/python26 $INPUT_DIR/manage.py compress_assets
+mkdir -p $INPUT_DIR/static
+/usr/bin/python26 $INPUT_DIR/manage.py collectstatic --noinput --clear
# FIXME: Commenting this out because it's not working.
# if [ -d $SYNC_DIR/migrations/sites ]; then
@@ -44,6 +44,8 @@ popd > /dev/null
$PYTHON manage.py cron get_highcharts
# Minify assets.
$PYTHON manage.py compress_assets
+ mkdir -p $INPUT_DIR/static
+ /usr/bin/python26 $INPUT_DIR/manage.py collectstatic --noinput --clear
#fi
# Fix mobile and desktop site domains in database. Bug 608581.
View
@@ -240,3 +240,7 @@
'django.contrib.auth.hashers.MD5PasswordHasher',
'django.contrib.auth.hashers.CryptPasswordHasher',
)
+
+# There isn't a funfactory helper for this.
+STATICFILES_FINDERS = tuple(finder for finder in STATICFILES_FINDERS
+ if finder not in ('compressor.finders.CompressorFinder',))

0 comments on commit 1fcbe35

Please sign in to comment.