mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-25 09:56:15 -04:00
Fixed windows install and run.sh command.
This commit is contained in:
parent
65046a3ff2
commit
2a8aef5f15
2 changed files with 11 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue