runservice.sh 202 B

123456789
  1. #!/bin/sh
  2. echo Waiting for db...
  3. sleep 15
  4. source venv/bin/activate
  5. flask db init
  6. flask db migrate
  7. flask db upgrade
  8. python db_update.py
  9. exec gunicorn -b :5000 --access-logfile - --error-logfile - app:app