Spaces:
Running
Running
Fix port configuration: default to 7860 for Hugging Face Spaces
Browse files
start.sh
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
#!/usr/bin/env bash
|
| 2 |
# Start script for production: uses gunicorn to serve the Flask app
|
| 3 |
-
# Bind to the PORT environment variable (set by hosting platforms). Defaults to
|
| 4 |
-
PORT=${PORT:-
|
| 5 |
|
| 6 |
echo "Starting gunicorn on 0.0.0.0:${PORT}..."
|
| 7 |
exec gunicorn --bind 0.0.0.0:${PORT} --workers 1 --threads 4 --timeout 120 app:app
|
|
|
|
| 1 |
#!/usr/bin/env bash
|
| 2 |
# Start script for production: uses gunicorn to serve the Flask app
|
| 3 |
+
# Bind to the PORT environment variable (set by hosting platforms). Defaults to 7860.
|
| 4 |
+
PORT=${PORT:-7860}
|
| 5 |
|
| 6 |
echo "Starting gunicorn on 0.0.0.0:${PORT}..."
|
| 7 |
exec gunicorn --bind 0.0.0.0:${PORT} --workers 1 --threads 4 --timeout 120 app:app
|