pcs-website-test/lektor/docker/entrypoint.sh

7 lines
No EOL
569 B
Bash

#!/bin/bash
sh -c ". /opt/venv/bin/activate && exec python /opt/lektor/scripts/calendar-fetcher.py ${CALENDAR_URL} > /opt/lektor/project/content/termine/contents.lr"
# TODO Something with python and reading from docker mounts is broken but only when piping
cp /opt/lektor/project/content/contents.lr /tmp/myshadowcopyformisbehavingpython.txt
sh -c ". /opt/venv/bin/activate && exec python /opt/lektor/scripts/calendar-fetcher-main.py ${CALENDAR_URL} > /opt/lektor/project/content/contents.lr"
/root/.local/bin/lektor --project /opt/lektor/project server --host 0.0.0.0