Skip to content

Commit 748644c

Browse files
committed
Update README
1 parent a08aaa2 commit 748644c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@
1818

1919
### Development
2020

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:
2222

2323
```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"
2525
```
2626

2727
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.
2929
- Run `src/main.py` in an isolated Python environment managed by `uv`.
3030
- Automatically detect whether to use `pyproject.toml` or `requirements.txt` for dependency resolution.
3131

3232
### Production
3333

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:
3535

3636
```sh
3737
uv run --frozen src/main.py

0 commit comments

Comments
 (0)