You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
279 B

  1. #!/usr/bin/env bash
  2. set -o errexit
  3. app="/src/app"
  4. cd app
  5. (
  6. echo "Waiting for database"
  7. python manage.py wait_for_db
  8. echo "Starting celery"
  9. "watchmedo" auto-restart --directory="." --pattern="*.py" --recursive -- "celery" --app=app worker --loglevel=info --pool=solo
  10. )