From fcfe2e9ffd9b9ee8af63926a002602503f1ad71a Mon Sep 17 00:00:00 2001 From: Andrew Savchyn Date: Fri, 30 Sep 2022 10:51:05 +0200 Subject: Configurable launch script --- webui-user.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'webui-user.sh') diff --git a/webui-user.sh b/webui-user.sh index 0ce41d3f..11c316cb 100644 --- a/webui-user.sh +++ b/webui-user.sh @@ -21,6 +21,9 @@ export COMMANDLINE_ARGS="" # python3 venv without trailing slash (defaults to ${install_dir}/${clone_dir}/venv) #venv_dir="venv" +# script to launch to start the app +#export launch_script="launch.py" + # install command for torch #export TORCH_COMMAND="pip install torch==1.12.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113" -- cgit v1.2.3 From d18daafb8b0b0b7c5f8dc179de7cc0717465297b Mon Sep 17 00:00:00 2001 From: Andrew Savchyn Date: Fri, 30 Sep 2022 11:44:08 +0200 Subject: Uppercase for env var LAUNCH_SCRIPT --- webui-user.sh | 2 +- webui.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'webui-user.sh') diff --git a/webui-user.sh b/webui-user.sh index 11c316cb..30646f5c 100644 --- a/webui-user.sh +++ b/webui-user.sh @@ -22,7 +22,7 @@ export COMMANDLINE_ARGS="" #venv_dir="venv" # script to launch to start the app -#export launch_script="launch.py" +#export LAUNCH_SCRIPT="launch.py" # install command for torch #export TORCH_COMMAND="pip install torch==1.12.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113" diff --git a/webui.sh b/webui.sh index 6e27a4a6..05ca497d 100755 --- a/webui.sh +++ b/webui.sh @@ -41,9 +41,9 @@ then venv_dir="venv" fi -if [[ -z "${launch_script}" ]] +if [[ -z "${LAUNCH_SCRIPT}" ]] then - launch_script="launch.py" + LAUNCH_SCRIPT="launch.py" fi # Disable sentry logging @@ -138,4 +138,4 @@ fi printf "\n%s\n" "${delimiter}" printf "Launching launch.py..." printf "\n%s\n" "${delimiter}" -"${python_cmd}" "${launch_script}" +"${python_cmd}" "${LAUNCH_SCRIPT}" -- cgit v1.2.3