You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
687 B

4 years ago
  1. #!/bin/sh
  2. # Move to the folder where ep-lite is installed
  3. cd "$(dirname "$0")"/..
  4. # Source constants and usefull functions
  5. . bin/functions.sh
  6. # Prepare the environment
  7. bin/installDeps.sh || exit 1
  8. echo "If you are new to debugging Node.js with Chrome DevTools, take a look at this page:"
  9. echo "https://medium.com/@paul_irish/debugging-node-js-nightlies-with-chrome-devtools-7c4a1b95ae27"
  10. echo "Open 'chrome://inspect' on Chrome to start debugging."
  11. # Use 0.0.0.0 to allow external connections to the debugger
  12. # (ex: running Etherpad on a docker container). Use default port # (9229)
  13. node $(compute_node_args) --inspect=0.0.0.0:9229 node_modules/ep_etherpad-lite/node/server.js "$@"