2011-07-26 18:28:49 +00:00
|
|
|
#!/bin/sh
|
2011-03-28 12:27:09 +00:00
|
|
|
|
2021-02-04 23:43:27 +00:00
|
|
|
# Move to the Etherpad base directory.
|
|
|
|
MY_DIR=$(cd "${0%/*}" && pwd -P) || exit 1
|
|
|
|
cd "${MY_DIR}/../.." || exit 1
|
2011-07-27 13:37:12 +00:00
|
|
|
|
2021-02-02 23:30:07 +00:00
|
|
|
# Source constants and useful functions
|
2021-02-04 23:43:27 +00:00
|
|
|
. src/bin/functions.sh
|
2020-10-06 12:28:11 +00:00
|
|
|
|
2020-06-01 20:02:44 +00:00
|
|
|
# Prepare the environment
|
2021-02-04 23:43:27 +00:00
|
|
|
src/bin/installDeps.sh || exit 1
|
2011-07-27 13:37:12 +00:00
|
|
|
|
2018-12-22 12:28:50 +00:00
|
|
|
echo "If you are new to debugging Node.js with Chrome DevTools, take a look at this page:"
|
|
|
|
echo "https://medium.com/@paul_irish/debugging-node-js-nightlies-with-chrome-devtools-7c4a1b95ae27"
|
|
|
|
echo "Open 'chrome://inspect' on Chrome to start debugging."
|
2011-03-28 12:27:09 +00:00
|
|
|
|
2020-06-01 20:02:44 +00:00
|
|
|
# Use 0.0.0.0 to allow external connections to the debugger
|
|
|
|
# (ex: running Etherpad on a docker container). Use default port # (9229)
|
2021-02-16 06:38:04 +00:00
|
|
|
exec node $(compute_node_args) --inspect=0.0.0.0:9229 src/node/server.js "$@"
|