Files
max/Makefile
T
finnandClaude Opus 5.5 9895017385 Restructure scripts into dev/ and prod/ for the devcontainer
- scripts/prod: entrypoint, db-setup and schema.sql shipped in the image
- scripts/dev: seed/clear db, psql and cleanup, run natively in the
  devcontainer instead of via docker-compose
- move setup.cfg to the repo root so linters pick it up
- Makefile targets run directly in the devcontainer

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 08:39:28 +00:00

31 lines
612 B
Makefile

# DEV
seed-dev: clear-dev
FLASK_APP=max.app FLASK_DEBUG=1 scripts/dev/seed-db.sh
clear-dev:
scripts/dev/clear-db.sh
run-dev:
FLASK_APP=max.app FLASK_DEBUG=1 flask run --host 0.0.0.0 --port 8757
run-dev-as-prod:
mkdir -p log
FLASK_APP=max.app LOG_DIR=log gunicorn -w 1 -b 0.0.0.0:8757 max.app:app
run-cleanup:
scripts/dev/cleanup.sh
# PROD
build-prod:
docker build -t max:$(shell cat VERSION) .
run-prod:
docker-compose up -d
stop-prod:
docker-compose down
setup-prod-initial-login:
docker-compose exec max flask add-domain finn.st
docker-compose exec max flask reset-admin admin@finn.st admin