40 lines
671 B
Makefile
40 lines
671 B
Makefile
-include .deploy/Makefile
|
|
|
|
PYTHON = venv/bin/python
|
|
|
|
VERSION := 0.1.0
|
|
|
|
format:
|
|
@$(PYTHON) -m black mumui/*.py deployment/*.py
|
|
|
|
lint:
|
|
@$(PYTHON) -m ruff .
|
|
|
|
dev:
|
|
rm -rf venv
|
|
python3 -m virtualenv venv
|
|
$(PYTHON) -m pip install -r requirements.txt
|
|
$(PYTHON) -m pip install -r requirements-dev.txt
|
|
|
|
django:
|
|
docker build . -t mumui:local
|
|
|
|
pushpin-local:
|
|
cd pushpin && docker build . -t pushpin:mumui
|
|
|
|
nginx-local:
|
|
cd nginx && docker build . -t nginx:mumui
|
|
|
|
build:
|
|
$(MAKE) pushpin-local
|
|
$(MAKE) nginx-local
|
|
$(MAKE) django
|
|
|
|
.PHONY: static
|
|
static:
|
|
SECRET_KEY="" $(PYTHON) manage.py collectstatic --no-input
|
|
|
|
run: pushpin-local nginx-local django
|
|
@docker compose up
|
|
|