28 lines
666 B
Makefile
28 lines
666 B
Makefile
.PHONY: install dev_back dev_front dev docker docker-build
|
|
|
|
# Installe les dependances backend + frontend (a refaire par worktree)
|
|
install:
|
|
uv sync
|
|
cd frontend && npm install
|
|
|
|
# Backend avec auto-reload uvicorn
|
|
dev_back:
|
|
uv run plesna-gerance serve --reload
|
|
|
|
# Frontend avec hot-reload Vite
|
|
dev_front:
|
|
cd frontend && npm run dev
|
|
|
|
# Lance les deux en parallèle
|
|
dev:
|
|
$(MAKE) dev_back & $(MAKE) dev_front & wait
|
|
|
|
# Tire l'image publiee (registre Gitea) et lance via podman-compose
|
|
docker:
|
|
podman-compose pull
|
|
podman-compose up -d
|
|
|
|
# Construit l'image en local (test avant publication)
|
|
docker-build:
|
|
podman build -f backend.Dockerfile -t plesna-gerance:local .
|