mirror of
https://git.bolliret.ch/pcs/pcs-website
synced 2026-01-18 17:11:37 +01:00
Compare commits
2 commits
48d9be8d9a
...
9a14938e2e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9a14938e2e | ||
|
|
367b3fddc4 |
17 changed files with 16 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
||||||
public/
|
public/
|
||||||
|
lektor/lektordata/output/
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,8 @@ FROM debian:latest
|
||||||
RUN apt update
|
RUN apt update
|
||||||
RUN apt install -y python3-pip python3-venv pipx
|
RUN apt install -y python3-pip python3-venv pipx
|
||||||
RUN pipx install lektor
|
RUN pipx install lektor
|
||||||
RUN mkdir /opt/lektor
|
RUN mkdir -p /opt/lektor/project && mkdir -p /opt/lektor/output
|
||||||
WORKDIR /opt/lektor
|
|
||||||
|
WORKDIR /opt/lektor/project
|
||||||
|
|
||||||
ENV PATH="$PATH:/root/.local/bin"
|
ENV PATH="$PATH:/root/.local/bin"
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
|
|
@ -15,7 +15,17 @@ New Lektor Approach:
|
||||||
thats all!
|
thats all!
|
||||||
|
|
||||||
|
|
||||||
If you would start from scratch you wolud delete all contents in lektordata/ and run
|
building the website for deployment is:
|
||||||
|
|
||||||
|
docker run -it -v ${PWD}/lektor/lektordata:/opt/lektor -p 5000:5000 lektorcontainer lektor build -O /opt/lektor/output
|
||||||
|
|
||||||
|
deployemnt can then be found in:
|
||||||
|
|
||||||
|
lektor/lektordata/output
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
If you would like to start from scratch you would delete all contents in lektordata/project and run
|
||||||
|
|
||||||
docker run -it -v ${PWD}/lektor/lektordata:/opt/lektor lektorcontainer lektor quickstart
|
docker run -it -v ${PWD}/lektor/lektordata:/opt/lektor lektorcontainer lektor quickstart
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue