campaign version refinment, user locks, db repair
This commit is contained in:
@@ -4,6 +4,10 @@ set -e
|
||||
ROLE="${APP_ROLE:-api}"
|
||||
|
||||
if [ "$ROLE" = "api" ]; then
|
||||
if [ "${RUN_DB_MIGRATIONS:-true}" = "true" ]; then
|
||||
python -m app.db.migrate
|
||||
fi
|
||||
|
||||
exec uvicorn app.main:app \
|
||||
--host "${APP_HOST:-0.0.0.0}" \
|
||||
--port "${APP_PORT:-8000}" \
|
||||
|
||||
Reference in New Issue
Block a user