Files
PunktFri/Makefile
Henrik Jess Nielsen df27882c77
All checks were successful
Build and Deploy PunktFri / build-and-deploy (push) Successful in 47s
fix: use flask run --reload in dev target
2026-04-26 23:17:31 +02:00

22 lines
446 B
Makefile

VENV := .venv
PYTHON := $(VENV)/bin/python
PIP := $(VENV)/bin/pip
PYTEST := $(VENV)/bin/pytest
.PHONY: install run test build
$(VENV)/bin/activate:
python3 -m venv $(VENV)
install: $(VENV)/bin/activate
$(PIP) install --quiet -r requirements-dev.txt
run: install
FLASK_APP=app.py FLASK_DEBUG=1 PORT=9912 $(VENV)/bin/flask run --host=0.0.0.0 --port=9912 --reload
test: install
$(PYTEST) tests/ -v
build:
docker build -t punktfri:local .