fix migration script
This commit is contained in:
@@ -21,6 +21,11 @@ if [ -z "$MODE" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! alembic upgrade head; then
|
||||
echo "Migration failed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$MODE" = "dev" ]; then
|
||||
WORKERS="${WORKERS:-1}"
|
||||
exec gunicorn \
|
||||
|
||||
Reference in New Issue
Block a user