修改Gunicorn的测试命令,调试中,未完成

This commit is contained in:
2025-08-29 22:29:38 +08:00
parent c59ba98e8c
commit 0a673cf2bb
9 changed files with 715 additions and 37 deletions

View File

@@ -240,9 +240,8 @@ WorkingDirectory={project_path}
# 所有Gunicorn参数直接在这里配置
ExecStart=/usr/local/bin/gunicorn \\
--bind 0.0.0.0:8000 \\
--workers 3 \\
--workers 4 \\
--worker-class sync \\
--timeout 60 \\
--name {project_name} \\
--access-logfile {project_path}/logs/gunicorn_access.log \\
--error-logfile {project_path}/logs/gunicorn_error.log \\
@@ -280,10 +279,9 @@ Group={username}
WorkingDirectory={project_path}
# 所有Gunicorn参数直接在这里配置
ExecStart=/usr/local/bin/gunicorn \\
--bind 127.0.0.1:{port} \\
--workers $(nproc --all * 2 + 1) \\
--bind 0.0.0.0:{port} \\
--workers 4 \\
--worker-class sync \\
--timeout 60 \\
--name {project_name} \\
--access-logfile {project_path}/logs/gunicorn_access.log \\
--error-logfile {project_path}/logs/gunicorn_error.log \\