From 7f528e60f5b9868a5fbcd579466fafc352594d88 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Mon, 6 Jan 2025 04:36:25 +0100 Subject: Clean up makefile to add support for waitress --- Makefile | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1f72d53..34a3d59 100644 --- a/Makefile +++ b/Makefile @@ -1,20 +1,28 @@ all: install -import: venv +install: venv/bin/flask + +import: install venv/bin/python3 ./halfnarp2.py -i -do-export: venv +do-export: install venv/bin/python3 ./halfnarp2.py -e -run: venv +run: install PYTHONIOENCODING=utf-8 venv/bin/python3 ./halfnarp2.py -run-fullnarp: venv +run-halfnarp-waitress: install venv/bin/waitress-serve + PYTHONIOENCODING=utf-8 venv/bin/python3 venv/bin/waitress-serve --host 127.0.0.1 --port 5023 wsgi:app + +run-fullnarp: install PYTHONIOENCODING=utf-8 venv/bin/python3 ./fullnarp.py +venv/bin/waitress-serve: install + venv/bin/pip install waitress + venv: python3 -m venv ./venv -install: venv +venv/bin/flask: venv venv/bin/pip install --upgrade pip venv/bin/pip install -r requirements.txt -- cgit v1.2.3