Skip to content
Merged
Changes from all commits
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
7 changes: 4 additions & 3 deletions src/hypercorn/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ def run(config: Config) -> None:

sockets = config.create_sockets()

# Load the application so that the correct paths are checked for
# changes.
load_application(config.application_path, config.wsgi_max_body_size)
if config.use_reloader:
# Load the application so that the correct paths are checked for
# changes, but only when the reloader is being used.
load_application(config.application_path, config.wsgi_max_body_size)

ctx = get_context("spawn")

Expand Down