Update entrypoint.sh

This commit is contained in:
2025-05-27 15:32:00 +02:00
parent c2c03efe9e
commit dcf8af5e39

View File

@@ -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