Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion a1111/webui-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ install_dir="/workspace"
#clone_dir="stable-diffusion-webui"

# Commandline arguments for webui.py, for example: export COMMANDLINE_ARGS="--medvram --opt-split-attention"
export COMMANDLINE_ARGS="--port 3001 --skip-install --listen --api --xformers --enable-insecure-extension-access --no-half-vae"
test -z "$COMMANDLINE_ARGS" || export COMMANDLINE_ARGS="--port 3001 --skip-install --listen --api --xformers --enable-insecure-extension-access --no-half-vae"

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not work correctly, correct syntax is:

: ${COMMANDLINE_ARGS:="--port 3001 --skip-install --listen --api --xformers --enable-insecure-extension-access --no-half-vae"} && export COMMANDLINE_ARGS

@elthariel elthariel Mar 8, 2024

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of a similar need I've decided to add something along the lines of :

WEBUI_USER_LOCAL=${WEBUI_USER_LOCAL:-webui-user.local.sh}
if [ -x "$WEBUI_USER_LOCAL" ] ; then
  source "$WEBUI_USER_LOCAL"
fi

I think it gives even more flexibility, as it allows to put the config in /workspace which is helpful for runpod users :D


# python3 executable
#python_cmd="python3"
Expand Down