Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion reflex/utils/exec.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,14 @@ def run_uvicorn_backend_prod(host: str, port: int, loglevel: LogLevel):
command = (
["uvicorn", *("--host", host), *("--port", str(port)), "--factory", app_module]
if constants.IS_WINDOWS
else ["gunicorn", "--preload", *("--bind", f"{host}:{port}"), f"{app_module}()"]
else [
"gunicorn",
"--preload",
"--worker-class",
"uvicorn.workers.UvicornWorker",
Comment thread
Lendemor marked this conversation as resolved.
Outdated
*("--bind", f"{host}:{port}"),
f"{app_module}()",
]
)

command += [
Expand Down