diff options
author | B. Stack <bgstack15@gmail.com> | 2023-08-30 16:49:12 -0400 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2023-08-30 16:49:12 -0400 |
commit | 0b8e2eca6e25d6b6acefd627e1d6871e28a26920 (patch) | |
tree | eca2aced0ba17af28454bb544cbe9cc87ecb8ac0 /entrypoint.sh | |
parent | WIP: add reverse-proxy support (diff) | |
download | newspipe-docker-0b8e2eca6e25d6b6acefd627e1d6871e28a26920.tar.gz newspipe-docker-0b8e2eca6e25d6b6acefd627e1d6871e28a26920.tar.bz2 newspipe-docker-0b8e2eca6e25d6b6acefd627e1d6871e28a26920.zip |
WIP: a few prefix parts work, but will need to fix link generation?
Diffstat (limited to 'entrypoint.sh')
-rwxr-xr-x | entrypoint.sh | 8 |
1 files changed, 5 insertions, 3 deletions
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 |