Permalink
Browse files

Fix deploy script for stage.

  • Loading branch information...
1 parent 4216192 commit 82537718ebebc0ccce2dc5dfcafd4c51ac261648 @solarce solarce committed with mythmon Nov 21, 2012
Showing with 7 additions and 3 deletions.
  1. +1 −1 .gitignore
  2. +6 −2 scripts/update_staging.sh
View
2 .gitignore
@@ -18,4 +18,4 @@ media/js/libs/highcharts.src.js
locale
docs/_build
settings/local.py
-static/
+static
View
8 scripts/update_staging.sh 100755 → 100644
@@ -7,7 +7,7 @@ HERE=`dirname $0`
GIT=`which git`
SVN=`which svn`
PYTHON=`which python2.6`
-
+INPUT_DIR=/data/www/input.stage.mozilla.com/reporter
pushd "$HERE/../" > /dev/null
# update locales
@@ -44,7 +44,11 @@ popd > /dev/null
$PYTHON manage.py cron get_highcharts
# Minify assets.
$PYTHON manage.py compress_assets
- mkdir -p $INPUT_DIR/static
+ #mkdir -p $INPUT_DIR/static
+ if [ -d $INPUT_DIR/static ]; then
+ echo "making static dir"
+ mkdir -p $INPUT_DIR/static
+ fi
$PYTHON manage.py collectstatic --noinput --clear
# Grab up to date product details
$PYTHON manage.py update_product_details

0 comments on commit 8253771

Please sign in to comment.