Fix worker crash: remove broken gunicorn post_fork hook
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+9
-2
@@ -1,3 +1,10 @@
|
||||
from app import create_app
|
||||
import sys
|
||||
|
||||
create_app(setup_database=True)
|
||||
try:
|
||||
from app import create_app
|
||||
|
||||
create_app(setup_database=True)
|
||||
print("Database init OK", flush=True)
|
||||
except Exception as exc:
|
||||
print(f"Database init FAILED: {exc}", file=sys.stderr, flush=True)
|
||||
raise
|
||||
|
||||
Reference in New Issue
Block a user