Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 35 lines (25 sloc) 0.883 kb
#!/bin/bash
# Update script for staging server. Takes care of updating code repo, vendor
# dir, and running DB migrations.
HERE=`dirname $0`
GIT=`which git`
PYTHON=`which python2.6`
pushd "$HERE/../" > /dev/null
# pull actual code
$GIT pull -q origin master
$GIT submodule update --init
# pull vendor repo
pushd vendor > /dev/null
$GIT pull -q origin master
$GIT submodule update --init
popd > /dev/null
# Run database migrations.
$PYTHON vendor/src/schematic/schematic migrations/
$PYTHON vendor/src/schematic/schematic migrations/sites
# Pull in highcharts.src.js - our lawyers make us do this.
/usr/bin/python26 $INPUT_DIR/manage.py cron get_highcharts
# Minify assets.
$PYTHON manage.py compress_assets
# Fix mobile and desktop site domains in database. Bug 608581.
$PYTHON ./manage.py cron set_domains input.stage.mozilla.com m.input.stage.mozilla.com
popd > /dev/null
Jump to Line
Something went wrong with that request. Please try again.