update.sh 349 B

12345678910111213
  1. #!/bin/bash
  2. cd $(dirname $0)
  3. git checkout .
  4. git pull
  5. source ./venv/bin/activate
  6. pip install --disable-pip-version-check -r requirements.txt --no-cache
  7. ./manage.py crontab remove
  8. ./manage.py crontab add
  9. ./manage.py collectstatic --noinput
  10. ./manage.py makemigrations
  11. ./manage.py migrate
  12. touch ./project_base/wsgi.py
  13. #./manage.py compilemessages -l de