File tree 7 files changed +28
-19
lines changed
7 files changed +28
-19
lines changed Original file line number Diff line number Diff line change 10
10
"name" : " Launch server" ,
11
11
"program" : " ${workspaceFolder}/src/server.js" ,
12
12
"outputCapture" : " std"
13
- }
13
+ },
14
+ {
15
+ "name" : " Attach docker" ,
16
+ "type" : " node" ,
17
+ "request" : " attach" ,
18
+ "port" : 9229 ,
19
+ "address" : " localhost" ,
20
+ "localRoot" : " ${workspaceFolder}" ,
21
+ "remoteRoot" : " /launch_node" ,
22
+ "protocol" : " inspector"
23
+ },
14
24
]
15
25
}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ services:
5
5
context : .
6
6
dockerfile : ./dockerfile_debug
7
7
ports :
8
- - " 443: 3000"
8
+ - " 3000:443 "
9
9
- " 9229:9229"
10
10
command :
11
11
npm run debug
Original file line number Diff line number Diff line change 1
1
version : ' 3'
2
2
services :
3
- strawberry :
3
+ launch_node :
4
4
build : .
5
5
# image: strawberry0.2
6
6
ports : # host:container
7
- - " 443: 3000"
7
+ - " 3000:443 "
8
8
- " 9229:9229"
9
9
command :
10
10
npm start
Original file line number Diff line number Diff line change 1
- FROM node:10.15.3
2
- COPY . /strawberry_koa
3
- WORKDIR /strawberry_koa
1
+ FROM node:latest
2
+ COPY . /launch_node
3
+ WORKDIR /launch_node
4
4
RUN npm install
5
5
# RUN npm install --registry=https://registry.npm.taobao.org
6
6
# CMD [ "npm", "start" ]
Original file line number Diff line number Diff line change 1
- FROM node:10.15.3
2
- COPY . /strawberry_koa
3
- WORKDIR /strawberry_koa
1
+ FROM node:latest
2
+ COPY . /launch_node
3
+ WORKDIR /launch_node
4
4
RUN npm install
5
- # RUN npm install --registry=https://registry.npm.taobao.org
6
- # CMD [ "npm", "start" ]
5
+
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " strwaberry_koa " ,
2
+ "name" : " launch_node " ,
3
3
"version" : " 1.0.0" ,
4
- "description" : " strawberry in koa" ,
5
- "main" : " launcher .js" ,
4
+ "description" : " launch server in koa" ,
5
+ "main" : " server .js" ,
6
6
"scripts" : {
7
7
"debug" : " node --inspect-brk=0.0.0.0 ./src/server.js" ,
8
8
"start" : " node ./src/server.js"
9
9
},
10
10
"repository" : {
11
11
"type" : " git" ,
12
- "url" : " git+https://github.com/org0000h/strwaberry_koa .git"
12
+ "url" : " git+https://github.com/org0000h/launch_node .git"
13
13
},
14
14
"author" : " asia" ,
15
15
"license" : " ISC" ,
16
16
"bugs" : {
17
- "url" : " https://github.com/org0000h/strwaberry_koa /issues"
17
+ "url" : " https://github.com/org0000h/launch_node /issues"
18
18
},
19
- "homepage" : " https://github.com/org0000h/strwaberry_koa #readme" ,
19
+ "homepage" : " https://github.com/org0000h/launch_mode #readme" ,
20
20
"dependencies" : {
21
21
"@koa/cors" : " ^2.2.3" ,
22
22
"eslint" : " ^5.16.0" ,
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ config_server = {
11
11
websocket_ssl :true ,
12
12
websocket_ssl_port :3001 ,
13
13
14
- db_enable :true ,
14
+ db_enable :false ,
15
15
db_type : 'dev' ,
16
16
maxSockets :40000
17
17
}
You can’t perform that action at this time.
0 commit comments