mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-04 19:56:37 +02:00
Fixed windows install and run.sh command.
This commit is contained in:
parent
65046a3ff2
commit
2a8aef5f15
@ -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…
x
Reference in New Issue
Block a user