From c11baf859a88358325fc20669d3fd7346577fcaf Mon Sep 17 00:00:00 2001 From: Cassowary Rusnov Date: Wed, 4 Jan 2023 21:28:48 -0800 Subject: [PATCH] Add required voila configuratios --- abra.sh | 2 +- startup.sh | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/abra.sh b/abra.sh index 15dc1af..e8e878d 100644 --- a/abra.sh +++ b/abra.sh @@ -1 +1 @@ -export STARTUP_SH_VERSION=v1 +export STARTUP_SH_VERSION=v2 diff --git a/startup.sh b/startup.sh index 5b95c89..71c4e7b 100755 --- a/startup.sh +++ b/startup.sh @@ -1,12 +1,11 @@ #!/bin/sh -# Nofail the cd just in case the image isn't up yet -cd $VOILA_DIRECTORY || true +cd $VOILA_DIRECTORY || true -if [-e "$REQUIREMENTS_PATH" ]; then +if [-eq "$REQUIREMENTS_PATH" ]; then pip install -r "$REQUIREMENTS_PATH" else pip install voila==$VOILA_VERSION fi -python -mvoila --no-browser --port=80 $VOILA_OPTIONS +python -mvoila --no-browser --port=80 --Voila.ip=0.0.0.0 --autoreload=True $VOILA_OPTIONS