update_prod.sh 305 B

1234567891011121314
  1. #!/bin/bash
  2. set -e
  3. # Check if running in a virtualenv
  4. [ -z "$VIRTUAL_ENV" ] && { echo 'Please run this script in a virtualenv!'; exit 1;}
  5. git pull
  6. pip install -r requirements.txt
  7. ./manage.py collectstatic
  8. echo
  9. echo
  10. echo "** Update done. Don't forget to restart gunicorn (e.g. using 'supervisorctl')"