修改Gunicorn的测试命令,调试中,未完成
This commit is contained in:
@@ -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 \\
|
||||
|
||||
Reference in New Issue
Block a user