Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -25,13 +25,14 @@ uv sync
|
||||
cd site
|
||||
uv run python manage.py migrate
|
||||
uv run python manage.py runserver
|
||||
# optional: docker compose up # web + postgres (hot reload)
|
||||
# optional worker: docker compose --profile worker up worker
|
||||
# optional: docker compose up # web + postgres + worker (hot reload)
|
||||
```
|
||||
|
||||
Docker compose mounts `./site` into the container and runs Django `runserver` when
|
||||
`DJANGO_ENV=dev` (the default). Edit Python/templates → auto-reload; no image rebuild.
|
||||
Rebuild only when Dockerfile / deps (`pyproject.toml`, `uv.lock`) change:
|
||||
`DJANGO_ENV=dev` (the default). The **worker** service polls `dispatch_due` every 15s so
|
||||
scheduled campaigns and social posts fire without a manual command. Edit Python/templates
|
||||
→ auto-reload; no image rebuild.
|
||||
Rebuild only when Dockerfile, entrypoint scripts, or deps (`pyproject.toml`, `uv.lock`) change:
|
||||
|
||||
```bash
|
||||
docker compose up --build
|
||||
|
||||
Reference in New Issue
Block a user