From cc2443cf5bb95f8f626faf44df3e125ea309e150 Mon Sep 17 00:00:00 2001 From: ajaysi Date: Sun, 5 Apr 2026 18:40:57 +0530 Subject: [PATCH] fix(backend): simplify startup to run uvicorn directly with Render's PORT --- Procfile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Procfile b/Procfile index 7d0a4c82..8b665e1f 100644 --- a/Procfile +++ b/Procfile @@ -1 +1,13 @@ -web: cd backend && ALWRITY_ENABLED_FEATURES=podcast python start_alwrity_backend.py --production +web: cd backend && ALWRITY_ENABLED_FEATURES=podcast python -c " +import os +import sys +# Ensure podcast mode +os.environ.setdefault('ALWRITY_ENABLED_FEATURES', 'podcast') +# Set HOST/PORT for Render +port = os.getenv('PORT', '10000') +host = os.getenv('HOST', '0.0.0.0') +print(f'[STARTUP] Starting uvicorn on {host}:{port}', flush=True) +sys.stdout.flush() +import uvicorn +uvicorn.run('app:app', host=host, port=int(port), reload=False) +"