loglevel setting on prod command (#594)
This commit is contained in:
parent
6c8ce67b8b
commit
9a9a731766
@ -801,30 +801,28 @@ def run_backend_prod(
|
|||||||
|
|
||||||
num_workers = get_num_workers()
|
num_workers = get_num_workers()
|
||||||
command = (
|
command = (
|
||||||
constants.RUN_BACKEND_PROD_WINDOWS
|
[
|
||||||
+ [
|
*constants.RUN_BACKEND_PROD_WINDOWS,
|
||||||
"--host",
|
"--host",
|
||||||
"0.0.0.0",
|
"0.0.0.0",
|
||||||
"--port",
|
"--port",
|
||||||
str(port),
|
str(port),
|
||||||
"--log-level",
|
|
||||||
loglevel,
|
|
||||||
f"{app_name}:{constants.APP_VAR}",
|
f"{app_name}:{constants.APP_VAR}",
|
||||||
]
|
]
|
||||||
if platform.system() == "Windows"
|
if platform.system() == "Windows"
|
||||||
else constants.RUN_BACKEND_PROD
|
else [
|
||||||
+ [
|
*constants.RUN_BACKEND_PROD,
|
||||||
"--bind",
|
"--bind",
|
||||||
f"0.0.0.0:{port}",
|
f"0.0.0.0:{port}",
|
||||||
"--threads",
|
"--threads",
|
||||||
str(num_workers),
|
str(num_workers),
|
||||||
"--log-level",
|
|
||||||
str(loglevel),
|
|
||||||
f"{app_name}:{constants.APP_VAR}()",
|
f"{app_name}:{constants.APP_VAR}()",
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
command += [
|
command += [
|
||||||
|
"--log-level",
|
||||||
|
loglevel.value,
|
||||||
"--workers",
|
"--workers",
|
||||||
str(num_workers),
|
str(num_workers),
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user