mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
Fixed scripts in bin folder (#6163)
This commit is contained in:
parent
03c8518e66
commit
47f0113fd7
5 changed files with 7 additions and 6 deletions
|
@ -35,5 +35,5 @@ src/bin/installDeps.sh "$@" || exit 1
|
|||
|
||||
#Move to the node folder and start
|
||||
echo "Starting Etherpad..."
|
||||
|
||||
exec node src/node/server.js "$@"
|
||||
cd src
|
||||
exec node --import tsx ./node/server.ts "$@"
|
||||
|
|
|
@ -20,7 +20,7 @@ end script
|
|||
|
||||
script
|
||||
cd $EPHOME/
|
||||
exec su -s /bin/sh -c 'exec "$0" "$@"' $EPUSER -- node src/node/server.ts \
|
||||
exec su -s /bin/sh -c 'exec "$0" "$@"' $EPUSER -- node --import tsx src/node/server.ts \
|
||||
>> $EPLOGS/access.log \
|
||||
2>> $EPLOGS/error.log
|
||||
echo "Etherpad is running on http://localhost:9001 - To change settings edit /opt/etherpad/settings.json"
|
||||
|
|
|
@ -14,6 +14,7 @@ echo "If you are new to debugging Node.js with Chrome DevTools, take a look at t
|
|||
echo "https://medium.com/@paul_irish/debugging-node-js-nightlies-with-chrome-devtools-7c4a1b95ae27"
|
||||
echo "Open 'chrome://inspect' on Chrome to start debugging."
|
||||
|
||||
cd src
|
||||
# Use 0.0.0.0 to allow external connections to the debugger
|
||||
# (ex: running Etherpad on a docker container). Use default port # (9229)
|
||||
exec node --inspect=0.0.0.0:9229 src/node/server.js "$@"
|
||||
exec node --import tsx --inspect=0.0.0.0:9229 ./node/server.ts "$@"
|
||||
|
|
|
@ -19,4 +19,4 @@ cd "${MY_DIR}/../.." || exit 1
|
|||
echo "Running directly, without checking/installing dependencies"
|
||||
|
||||
# run Etherpad main class
|
||||
exec node src/node/server.js "$@"
|
||||
exec node --import tsx src/node/server.ts "$@"
|
||||
|
|
|
@ -32,4 +32,4 @@ src/bin/installDeps.sh "$@" || exit 1
|
|||
# Move to the node folder and start
|
||||
log "Starting Etherpad..."
|
||||
|
||||
exec npm run dev --prefix ./src "$@"
|
||||
exec pnpm run dev --prefix ./src "$@"
|
||||
|
|
Loading…
Reference in a new issue