This repository has been archived on 2022-06-28. You can view files and clone it, but cannot push or open issues/pull-requests.
pieter/Makefile

31 lines
557 B
Makefile
Raw Permalink Normal View History

2021-12-30 21:29:05 +01:00
# =====CONFIG=====
PYTHON := python3
VENV := .venv
# =====RECIPES=====
# Create the virtual environment
$(VENV)/bin/activate: setup.py
'$(PYTHON)' -m venv '$(VENV)'
'$(VENV)/bin/pip' install -r requirements.txt
venv: $(VENV)/bin/activate
.PHONY: venv
# Remove any temporary files
clean:
@ rm -rf '$(VENV)'
.PHONY: clean
2021-12-30 22:28:24 +01:00
run:
@ API_KEY=test REPO_DIR=data '$(VENV)/bin/flask' run
.PHONY: run
gunicorn:
@ API_KEY=test REPO_DIR=data '$(VENV)/bin/gunicorn' app:app
.PHONY: gunicorn
image:
@ docker build -t chewingbever/arch-repo .
.PHONY: image