[fix]. Run migrations before app startup
This commit is contained in:
8
docker/entrypoint.sh
Normal file
8
docker/entrypoint.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
echo "Running database migrations..."
|
||||
alembic upgrade head
|
||||
|
||||
echo "Starting API server..."
|
||||
exec uvicorn gitea_codex_bot.main:app --host 0.0.0.0 --port 8000
|
||||
Reference in New Issue
Block a user