您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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