7 lines
212 B
Bash
7 lines
212 B
Bash
#!/bin/sh
|
|
set -e
|
|
python -m app.preupgrade
|
|
alembic upgrade head
|
|
python -m app.bootstrap
|
|
exec uvicorn app.main:app --host 0.0.0.0 --port 8000 --proxy-headers --forwarded-allow-ips='*' --workers "${API_WORKERS:-2}"
|