Skip to content

Instantly share code, notes, and snippets.

@rodrigok
Last active June 9, 2017 20:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rodrigok/07fdfca2b29538ef716ea10f60cb0a71 to your computer and use it in GitHub Desktop.
Save rodrigok/07fdfca2b29538ef716ea10f60cb0a71 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
kill -s USR1 PROCESS_ID
node_modules/node-inspector/bin/inspector.js --web-port=9000
# Terminal 2
docker exec -it CONTAINER_ID /bin/bash
curl -O https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.tar.gz
tar -xvzf ngrok-stable-linux-amd64.tar.gz
./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