Fixed windows install and run.sh command.

This commit is contained in:
SamTV12345 2024-03-15 21:36:12 +01:00
parent 65046a3ff2
commit 2a8aef5f15
2 changed files with 11 additions and 1 deletions

View file

@ -55,9 +55,17 @@ try pnpm install
try pnpm run build
cd ..
# Nuke the admin folder as it is not needed anymore :D
rm -rf admin
export NODE_ENV=production
try pnpm install --production
log "copy the windows settings template..."
try cp settings.json.template settings.json

View file

@ -29,10 +29,12 @@ fi
# Prepare the environment
bin/installDeps.sh "$@" || exit 1
## Create the admin ui
if [ -z "$NODE_ENV" ] || [ "$NODE_ENV" = "development" ]; then
ADMIN_UI_PATH="$(dirname $0)/../admin"
log "Creating the admin UI..."
(cd ../admin && pnpm run build)
(cd $ADMIN_UI_PATH && pnpm run build)
else
log "Cannot create the admin UI in production mode"
fi