Spaces:
Paused
Paused
Upload 11 files
Browse files- entrypoint.sh +6 -7
entrypoint.sh
CHANGED
|
@@ -35,12 +35,11 @@ echo "Starting Flask application on port ${FLASK_PORT:-8000}..."
|
|
| 35 |
WORKER_COUNT=${WORKER_COUNT:-$(( $(nproc) + 1 ))}
|
| 36 |
echo "Using $WORKER_COUNT workers"
|
| 37 |
|
|
|
|
| 38 |
exec gunicorn \
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
--
|
| 42 |
-
--
|
| 43 |
-
--
|
| 44 |
-
--access-logfile=- \
|
| 45 |
-
--error-logfile=- \
|
| 46 |
app.main:app
|
|
|
|
| 35 |
WORKER_COUNT=${WORKER_COUNT:-$(( $(nproc) + 1 ))}
|
| 36 |
echo "Using $WORKER_COUNT workers"
|
| 37 |
|
| 38 |
+
# 确保所有参数在一行或使用清晰的续行符
|
| 39 |
exec gunicorn \
|
| 40 |
+
--workers $WORKER_COUNT \
|
| 41 |
+
--bind 0.0.0.0:${FLASK_PORT:-8000} \
|
| 42 |
+
--log-level info \
|
| 43 |
+
--access-logfile - \
|
| 44 |
+
--error-logfile - \
|
|
|
|
|
|
|
| 45 |
app.main:app
|