Update Render

This commit is contained in:
Dries Peeters
2026-02-16 21:49:48 +01:00
parent 32f8a90ded
commit cd3b1b68ce
3 changed files with 6 additions and 6 deletions
+3 -2
View File
@@ -602,10 +602,11 @@ def main():
log("=" * 60, "INFO")
log("Starting application server", "INFO")
log("=" * 60, "INFO")
# Start gunicorn with access logs
# Start gunicorn with access logs (bind to PORT when set, e.g. by Render; default 8080 for docker-compose)
port = os.environ.get('PORT', '8080')
os.execv('/usr/local/bin/gunicorn', [
'gunicorn',
'--bind', '0.0.0.0:8080',
'--bind', '0.0.0.0:%s' % port,
'--worker-class', 'eventlet',
'--workers', '1',
'--timeout', '120',