10 lines
250 B
Bash
10 lines
250 B
Bash
#!/usr/bin/env bash
|
|
# App entrypoint: apply migrations, then launch the API.
|
|
set -e
|
|
|
|
cd /app
|
|
echo "[entrypoint] running migrations..."
|
|
alembic upgrade head
|
|
|
|
echo "[entrypoint] starting uvicorn..."
|
|
exec uvicorn app.main:app --host 0.0.0.0 --port 8000
|