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

update_qa.sh 762B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env bash
  2. #
  3. # Updated the QA build to HEAD of the current git branch.
  4. cd /var/www/oscar/builds/qa/
  5. # Update any dependencies
  6. source ../../virtualenvs/qa/bin/activate
  7. python setup.py develop
  8. pip install -r requirements.txt
  9. # Run any new migrations
  10. cd sites/sandbox
  11. ./manage.py syncdb --noinput
  12. ./manage.py migrate
  13. ./manage.py collectstatic --noinput
  14. # Re-compile python code
  15. touch deploy/wsgi/qa.wsgi
  16. # Copy down server config files
  17. cp deploy/nginx/qa.conf /etc/nginx/sites-enabled/qa.oscar.tangentlabs.co.uk
  18. /etc/init.d/nginx configtest && /etc/init.d/nginx force-reload
  19. cp deploy/apache2/qa.conf /etc/apache2/sites-enabled/qa.oscar.tangentlabs.co.uk
  20. /etc/init.d/apache2 reload
  21. # Copy down cronjob file
  22. cp deploy/cron.d/oscar /etc/cron.d/oscar-qa