This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2020-09-02 22:04:12 +00:00
|
|
|
#!/bin/bash -e
|
2020-05-16 20:14:26 +00:00
|
|
|
/app/wait_for_db.py
|
2020-09-02 22:04:12 +00:00
|
|
|
printf '{"event": "Bootstrap completed", "level": "info", "logger": "bootstrap", "command": "%s"}\n' "$@"
|
|
|
|
if [[ "$1" == "server" ]]; then
|
|
|
|
gunicorn -c gunicorn.conf.py passbook.root.asgi:application
|
|
|
|
elif [[ "$1" == "worker" ]]; then
|
|
|
|
celery worker --autoscale=10,3 -E -B -A=passbook.root.celery -s=/tmp/celerybeat-schedule
|
|
|
|
else
|
|
|
|
./manage.py "$@"
|
|
|
|
fi
|