chore: clean up repo state and improve dev tooling

- Add IF NOT EXISTS to all migration DDL for idempotency
- Support PORT env var in backend (for compose flexibility)
- Support HOST_PORT env var in docker-compose
- Improve seed-demo to apply migrations before seeding
- Gitignore .claude/ session cache
This commit is contained in:
2026-04-29 01:39:00 +02:00
parent b252128c37
commit 4aea0f4427
5 changed files with 36 additions and 23 deletions

View File

@@ -2,11 +2,12 @@ services:
app:
build: .
ports:
- "3000:3000"
- "${HOST_PORT:-3000}:3000"
volumes:
- ./data:/data
environment:
- DATABASE_URL=sqlite:/data/attendance.db
- STATIC_DIR=/app/frontend/build
- JWT_SECRET=${JWT_SECRET:-dev_secret_for_demo}
- PORT=3000
restart: always