Add required voila configuratios

This commit is contained in:
Cassowary 2023-01-04 21:28:48 -08:00
parent 3a7ac625c5
commit c11baf859a
2 changed files with 4 additions and 5 deletions

View File

@ -1 +1 @@
export STARTUP_SH_VERSION=v1
export STARTUP_SH_VERSION=v2

View File

@ -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