feat(docker): add watch mode for automatic frontend rebuilds in Docker
This commit is contained in:
16
Makefile
16
Makefile
@@ -142,6 +142,22 @@ frontend-build: frontend-tooling ## Build frontend (next build)
|
||||
api-gen: frontend-tooling ## Regenerate TS API client (requires backend running at 127.0.0.1:8000)
|
||||
$(NODE_WRAP) --cwd $(FRONTEND_DIR) npm run api:gen
|
||||
|
||||
.PHONY: docker-up
|
||||
docker-up: ## Start full Docker stack with image rebuild
|
||||
docker compose -f compose.yml --env-file .env up -d --build
|
||||
|
||||
.PHONY: docker-watch
|
||||
docker-watch: ## Start stack in watch mode (auto rebuild frontend on UI changes)
|
||||
docker compose -f compose.yml --env-file .env up --build --watch
|
||||
|
||||
.PHONY: docker-watch-only
|
||||
docker-watch-only: ## Attach file watch to an already-running stack
|
||||
docker compose -f compose.yml --env-file .env watch
|
||||
|
||||
.PHONY: docker-down
|
||||
docker-down: ## Stop full Docker stack
|
||||
docker compose -f compose.yml --env-file .env down
|
||||
|
||||
.PHONY: rq-worker
|
||||
rq-worker: ## Run background queue worker loop
|
||||
cd $(BACKEND_DIR) && uv run python ../scripts/rq worker
|
||||
|
||||
Reference in New Issue
Block a user