mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-05 06:37:10 -04:00
Adapted run.sh script
This commit is contained in:
parent
ed57005b6e
commit
6f3f127808
2 changed files with 14 additions and 3 deletions
|
@ -19,6 +19,15 @@ IF EXIST admin (
|
||||||
cd /D ..
|
cd /D ..
|
||||||
)
|
)
|
||||||
|
|
||||||
|
:: Install ui only if available
|
||||||
|
IF EXIST ui (
|
||||||
|
cd /D .\ui
|
||||||
|
dir
|
||||||
|
cmd /C pnpm i || exit /B 1
|
||||||
|
cmd /C pnpm run build || exit /B 1
|
||||||
|
cd /D ..
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
cmd /C pnpm i || exit /B 1
|
cmd /C pnpm i || exit /B 1
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ Please type 'Etherpad rocks my socks' (or restart with the '--root'
|
||||||
argument) if you still want to start it as root:
|
argument) if you still want to start it as root:
|
||||||
EOF
|
EOF
|
||||||
printf "> " >&2
|
printf "> " >&2
|
||||||
read rocks
|
read -r rocks
|
||||||
[ "$rocks" = "Etherpad rocks my socks" ] || fatal "Your input was incorrect"
|
[ "$rocks" = "Etherpad rocks my socks" ] || fatal "Your input was incorrect"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -32,9 +32,11 @@ 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"
|
ADMIN_UI_PATH="$(dirname "$0")/../admin"
|
||||||
|
UI_PATH="$(dirname "$0")/../ui"
|
||||||
log "Creating the admin UI..."
|
log "Creating the admin UI..."
|
||||||
(cd $ADMIN_UI_PATH && pnpm run build)
|
(cd "$ADMIN_UI_PATH" && pnpm run build)
|
||||||
|
(cd "$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