loglevel setting on prod command (#594)

This commit is contained in:
PeterYusuke 2023-02-25 15:44:33 +09:00 committed by GitHub
parent 6c8ce67b8b
commit 9a9a731766
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -801,30 +801,28 @@ def run_backend_prod(
num_workers = get_num_workers()
command = (
constants.RUN_BACKEND_PROD_WINDOWS
+ [
[
*constants.RUN_BACKEND_PROD_WINDOWS,
"--host",
"0.0.0.0",
"--port",
str(port),
"--log-level",
loglevel,
f"{app_name}:{constants.APP_VAR}",
]
if platform.system() == "Windows"
else constants.RUN_BACKEND_PROD
+ [
else [
*constants.RUN_BACKEND_PROD,
"--bind",
f"0.0.0.0:{port}",
"--threads",
str(num_workers),
"--log-level",
str(loglevel),
f"{app_name}:{constants.APP_VAR}()",
]
)
command += [
"--log-level",
loglevel.value,
"--workers",
str(num_workers),
]