From 941c2347956233d91efcdf220504cae55e8ce989 Mon Sep 17 00:00:00 2001 From: mb Date: Mon, 21 Aug 2023 12:18:12 +0200 Subject: [PATCH] adding a make setup rule --- wiki-to-print/Makefile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/wiki-to-print/Makefile b/wiki-to-print/Makefile index d150938..414009c 100644 --- a/wiki-to-print/Makefile +++ b/wiki-to-print/Makefile @@ -1,9 +1,14 @@ all: local +setup: + @echo "Running: python3 -m venv .venv" + @python3 -m venv .venv + @echo "Running: .venv/bin/pip3 install -r requirements.txt\n" + @.venv/bin/pip3 install -r requirements.txt + @echo "\nDone!\nNow you can configure wiki-to-print by editing: config.json" + local: - ./venv/bin/python3 web-interface.py + .venv/bin/python3 web-interface.py server: - @SCRIPT_NAME=/wiki-to-print venv/bin/gunicorn -b localhost:5522 --reload web-interface:APP - - + @SCRIPT_NAME=/wiki-to-print .venv/bin/gunicorn -b localhost:5522 --reload web-interface:APP