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

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