Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
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 setup.py develop
pip install -r requirements.txt
# Run any new migrations
cd sandbox
./manage.py syncdb --noinput
./manage.py migrate
./manage.py 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/sandbox.oscar.tangentlabs.co.uk
/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/sandbox.oscar.tangentlabs.co.uk
/etc/init.d/apache2 reload > /dev/null
Jump to Line
Something went wrong with that request. Please try again.