Update entrypoint.sh
This commit is contained in:
@@ -24,7 +24,7 @@ echo "PostgreSQL is up - executing command"
|
||||
|
||||
# Clean up existing migrations and initialize fresh
|
||||
echo "Cleaning up and initializing fresh migrations..."
|
||||
rm -rf migrations/versions/*
|
||||
rm -rf migrations
|
||||
flask db init
|
||||
flask db migrate -m "Initial migration"
|
||||
flask db upgrade
|
||||
@@ -52,4 +52,4 @@ init_admin()
|
||||
|
||||
# Start the application
|
||||
echo "Starting application..."
|
||||
exec gunicorn --worker-class eventlet -w 1 --bind 0.0.0.0:5000 app:app
|
||||
exec gunicorn --worker-class sync -w 1 --bind 0.0.0.0:5000 app:app
|
||||
Reference in New Issue
Block a user