Skip to content

Instantly share code, notes, and snippets.

@geekgonecrazy
Forked from rodrigok/a.sh
Last active June 22, 2017 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geekgonecrazy/12095d7639d3422a7cfcdeb32936068b to your computer and use it in GitHub Desktop.
Save geekgonecrazy/12095d7639d3422a7cfcdeb32936068b to your computer and use it in GitHub Desktop.
Debug Rocket.Chat demo container
# Terminal 1
docker exec -it CONTAINER_ID /bin/bash
npm install node-inspector
curl -O https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.tar.gz && tar -xvzf ngrok-stable-linux-amd64.tar.gz
kill -s USR1 $(pidof node)
node_modules/node-inspector/bin/inspector.js --web-port=9000
# Press ctrl+z
bg
./ngrok http 9000
# Open the ngrok url informed on terminal and wait a lot :(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment