Skip to content

Commit

Permalink
Enable hot reload for development server
Browse files Browse the repository at this point in the history
  • Loading branch information
K-dash committed May 31, 2024
1 parent 45319ae commit 40321ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repos:
hooks:
# Run the linter.
- id: ruff
args: [ ., --fix, --diff ]
entry: ruff check . --fix
# Run the formatter.
- id: ruff-format
args: [ . ]
2 changes: 1 addition & 1 deletion src/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ async def run_subprocess():


if __name__ == "__main__":
app.run(host="0.0.0.0", port=env.PORT)
app.run(host="0.0.0.0", port=env.PORT, debug=env.DEBUG)
1 change: 1 addition & 0 deletions src/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class ServerSettings(CommonSettings):
IP_ADDRESS: Union[IPvAnyAddress | Literal["localhost"]] = Field(
default="localhost"
)
DEBUG: bool = Field(default=True)


class EmailSettings(ServerSettings):
Expand Down

0 comments on commit 40321ca

Please sign in to comment.