Fixed scripts in bin folder (#6163)

This commit is contained in:
SamTV12345 2024-02-17 16:21:16 +01:00 committed by GitHub
parent 03c8518e66
commit 47f0113fd7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 7 additions and 6 deletions

View file

@ -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 "$@"

View file

@ -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"

View file

@ -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 "$@"

View file

@ -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 "$@"

View file

@ -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 "$@"