From dcf8af5e39cbdb9c4bb89c6334021de5c90a2d79 Mon Sep 17 00:00:00 2001 From: Kobe Date: Tue, 27 May 2025 15:32:00 +0200 Subject: [PATCH] Update entrypoint.sh --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 1051690..973c6ce 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 \ No newline at end of file +exec gunicorn --worker-class sync -w 1 --bind 0.0.0.0:5000 app:app \ No newline at end of file