Update startup scripts (see below)

1. Set NODE_ENV to production and skip dev dependencies when running from scripts.
2. Remove pkg leftovers. Indicate current environment instead.
This commit is contained in:
Cohee
2024-03-06 22:09:31 +02:00
parent 8be17251fe
commit a7aa5fccf9
5 changed files with 12 additions and 6 deletions

View File

@@ -28,7 +28,8 @@ if [ ! -z "$REPL_ID" ]; then
fi
echo "Installing Node Modules..."
npm i --no-audit
export NODE_ENV=production
npm i --no-audit --no-fund --quiet --omit=dev
echo "Entering SillyTavern..."
node "$(dirname "$0")/server.js" "$@"