Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 26 lines (20 sloc) 0.784 kB
#!/usr/bin/env bash
cd /var/www/oscar/builds/sandbox
git pull --ff-only 2> /dev/null
[ $? -gt 0 ] && echo "Git pull failed" >&2 && exit 1
# Update any dependencies
source ../../virtualenvs/sandbox/bin/activate
python develop
pip install -r requirements.txt
# Run any new migrations
cd sandbox
./ syncdb --noinput
./ migrate
./ collectstatic --noinput
# Re-compile python code
touch deploy/wsgi/sandbox.wsgi
# Copy down server config files
cp deploy/nginx/sandbox.conf /etc/nginx/sites-enabled/
/etc/init.d/nginx configtest 2> /dev/null && /etc/init.d/nginx force-reload 2> /dev/null
cp deploy/apache2/sandbox.conf /etc/apache2/sites-enabled/
/etc/init.d/apache2 reload > /dev/null
Jump to Line
Something went wrong with that request. Please try again.