From 893a2d13e15c20e4803ce673620826d0debd9a38 Mon Sep 17 00:00:00 2001 From: "Begerad, Stefan" Date: Fri, 2 Dec 2022 10:07:49 +0100 Subject: [PATCH] #160 doc: adjust build steps to build und run website on my local Debian Gnu/Linux host --- README.md | 12 +++++++++--- requirements.txt | 1 + 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 requirements.txt diff --git a/README.md b/README.md index 89604c1..73caa32 100644 --- a/README.md +++ b/README.md @@ -22,9 +22,6 @@ sudo apt install git-lfs # install lektor requirements sudo apt install python3-pip imagemagick -# install lektor -pip3 install --user lektor - # clone git repo to folder wtf-webseite git clone https://git.wtf-eg.de/ag_kommunikation/webseite.git wtf-webseite @@ -37,6 +34,15 @@ git lfs install # download all LFS files git lfs fetch +# create a virtual Python environmenty `venv` +python3 -m venv venv + +# activate the virtual Python environment +source venv/bin/activate + +# install the packages listed in [requirements.txt](./requirements.txt) using `pip` +pip install -r requirements.txt + # run lektor lektor server ``` diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..58717e8 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +lektor