From 0b8e2eca6e25d6b6acefd627e1d6871e28a26920 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Wed, 30 Aug 2023 16:49:12 -0400 Subject: WIP: a few prefix parts work, but will need to fix link generation? --- entrypoint.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'entrypoint.sh') diff --git a/entrypoint.sh b/entrypoint.sh index 6edba0f..89a6ee4 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -19,16 +19,18 @@ case "${1}" in *) cd /newspipe git fetch || : ; - test -f instance/config.py && cp -pf instance/config.py instance/config.py1 + test -f instance/sqlite.py && cp -pf instance/sqlite.py instance/sqlite.py1 git checkout -f "${NEWSPIPE_BRANCH}" || { echo "Invalid branch ${NEWSPIPE_BRANCH}" 1>&2 ; exit 1 ; } git pull || : ; - test -f instance/config.py1 && mv -f instance/config.py1 instance/config.py + test -f instance/sqlite.py1 && mv -f instance/sqlite.py1 instance/sqlite.py _host="${1:-${NEWSPIPE_HOST}}" _port="${2:-${NEWSPIPE_PORT}}" set -x # If you need to add new pip packages quickly: #poetry run pip3 install dnspython poetry run flask db_init || : - poetry run flask run -h "${_host:-0.0.0.0}" -p "${_port:-8081}" + sleep 80000 + # and now connect to this container and run in bash: + # poetry run flask run -h "${_host:-0.0.0.0}" -p "${_port:-8081}" ;; esac -- cgit