Skip to content

Commit

Permalink
Set up debugger passthrough for Node from Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
NoraCodes committed Mar 25, 2019
1 parent 98c88c0 commit f597458
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ services:
# Map the default port.
ports:
- "3000:3000"
- "9229:9229" # Debug port
# For production you might want something like:
# - "80:3000"
# and disable the debug port
# Don't bring this up without the DB
depends_on:
- database
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"repository": "https://github.com/OpenEnergyDashboard/OED",
"scripts": {
"start": "node ./src/bin/www",
"start:dev": "./node_modules/.bin/nodemon ./src/bin/www",
"start:dev": "./node_modules/.bin/nodemon --inspect=0.0.0.0 ./src/bin/www",
"webpack:dev": "webpack -d --watch --color --progress",
"webpack:build": "cross-env NODE_ENV=production webpack -p",
"webpack": "webpack -d --color --progress",
Expand Down

0 comments on commit f597458

Please sign in to comment.