You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

update_build.sh 415B

12345678910111213141516171819
  1. #!/usr/bin/env bash
  2. cd /var/www/oscar/django-oscar
  3. git pull 2> /dev/null
  4. [ $? -gt 0 ] && echo "Git pull failed" >&2 && exit 1
  5. # Update any dependencies
  6. source ../env/bin/activate
  7. python setup.py develop
  8. pip install -r requirements.txt
  9. # Run any new migrations
  10. cd sandbox
  11. ./manage.py syncdb --noinput
  12. ./manage.py migrate
  13. ./manage.py collectstatic --noinput
  14. # Re-compile python code
  15. touch deploy/wsgi/sandbox.wsgi