Skip to content

Commit

Permalink
Fix debugging for docker for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
galileo committed Jun 2, 2017
1 parent 5922283 commit 2c429b0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"type": "node",
"request": "attach",
"protocol": "inspector",
"port": 9229
"port": 9229,
"localRoot": "${workspaceRoot}",
"remoteRoot": "/opt/app"
},
{
"name": "Attach 5858 --debug",
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# if you're doing anything beyond your local machine, please pin this to a specific version at https://hub.docker.com/_/node/
FROM node:6
FROM node:7

RUN mkdir -p /opt/app

Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ services:
args:
- NODE_ENV=development
# you can use standard debug config or experimental node inspect
command: node --debug=5858 ../node_modules/nodemon/bin/nodemon.js
#command: node --inspect ../node_modules/nodemon/bin/nodemon.js
command: ../node_modules/.bin/nodemon --debug=0.0.0.0:5858
# command: ../node_modules/.bin/nodemon --inspect=0.0.0.0:9229
ports:
- "80:80"
- "5858:5858"
Expand Down

0 comments on commit 2c429b0

Please sign in to comment.