You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,20 +18,20 @@
18
18
19
19
### Development
20
20
21
-
During development, the container installs Node.js and `nodemon` to enable automatic reloads when files change. The development server is started with:
21
+
During development, the container installs `watchfiles` to enable automatic reloads when files change. The development server is started with:
22
22
23
23
```sh
24
-
nodemon --delay 1 --watch "pyproject.toml" --watch "requirements.txt" --watch ".venv/lib/*" --watch ".venv/lib64/*" --watch "src" --ext "py" --exec "sh -c 'if [ -f pyproject.toml ]; then uv run --isolated --with . src/main.py; elif [ -f requirements.txt ]; then uv run --isolated --with-requirements requirements.txt src/main.py; else uv run --isolated src/main.py; fi'"
24
+
uv run watchfiles "python src/main.py"
25
25
```
26
26
27
27
This will:
28
-
- Use `nodemon` to watch for file changes and restart the server automatically.
28
+
- Use `watchfiles` to watch for file changes and restart the server automatically.
29
29
- Run `src/main.py` in an isolated Python environment managed by `uv`.
30
30
- Automatically detect whether to use `pyproject.toml` or `requirements.txt` for dependency resolution.
31
31
32
32
### Production
33
33
34
-
Builds a production-ready image. During the build, dependencies are installed with `uv sync`. When the container starts, it runs:
34
+
Builds a production-ready image. During the build, dependencies are installed with `uv sync` or `uv pip install`. When the container starts, it runs:
0 commit comments