mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 07:35:05 -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
|
try pnpm run build
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Nuke the admin folder as it is not needed anymore :D
|
# Nuke the admin folder as it is not needed anymore :D
|
||||||
rm -rf admin
|
rm -rf admin
|
||||||
|
|
||||||
|
export NODE_ENV=production
|
||||||
|
try pnpm install --production
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
log "copy the windows settings template..."
|
log "copy the windows settings template..."
|
||||||
try cp settings.json.template settings.json
|
try cp settings.json.template settings.json
|
||||||
|
|
||||||
|
|
|
@ -29,10 +29,12 @@ fi
|
||||||
# Prepare the environment
|
# Prepare the environment
|
||||||
bin/installDeps.sh "$@" || exit 1
|
bin/installDeps.sh "$@" || exit 1
|
||||||
|
|
||||||
|
|
||||||
## Create the admin ui
|
## Create the admin ui
|
||||||
if [ -z "$NODE_ENV" ] || [ "$NODE_ENV" = "development" ]; then
|
if [ -z "$NODE_ENV" ] || [ "$NODE_ENV" = "development" ]; then
|
||||||
|
ADMIN_UI_PATH="$(dirname $0)/../admin"
|
||||||
log "Creating the admin UI..."
|
log "Creating the admin UI..."
|
||||||
(cd ../admin && pnpm run build)
|
(cd $ADMIN_UI_PATH && pnpm run build)
|
||||||
else
|
else
|
||||||
log "Cannot create the admin UI in production mode"
|
log "Cannot create the admin UI in production mode"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue