From d9d3237df17cb306b9e6695fb2be3120b2c95c44 Mon Sep 17 00:00:00 2001 From: srfrnk Date: Thu, 8 Mar 2018 16:04:21 +0200 Subject: [PATCH] chore: make it possible to debug using vscode --- .vscode/launch.json | 17 +++++++++++++++++ Makefile | 2 +- docker-compose.yml | 3 ++- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..0c8dc813 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,17 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "attach", + "name": "Attach to Docker", + "address": "localhost", + "port": 9229, + "localRoot": "${workspaceFolder}", + "remoteRoot": "/app" + } + ] +} diff --git a/Makefile b/Makefile index 7761fe0b..102ff735 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ all: up: - docker-compose build && docker-compose up & + docker-compose build && docker-compose up down: docker-compose down diff --git a/docker-compose.yml b/docker-compose.yml index 7ac2eba7..d14f04dd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,10 +3,11 @@ version: '3' services: missioncontrol: build: . - command: 'nodemon server/start-servers.js' + command: 'nodemon --inspect=0.0.0.0:9229 server/start-servers.js' ports: - '8888:8443' - '9090:9090' + - '9229:9229' environment: NODE_ENV: development DAV_ENV: simulated