File tree 3 files changed +30
-5
lines changed
3 files changed +30
-5
lines changed Original file line number Diff line number Diff line change
1
+ runtime : nodejs
2
+ env : flex
3
+ service : webchat-server
4
+
5
+ # This sample incurs costs to run on the App Engine flexible environment.
6
+ # The settings below are to reduce costs during testing and are not appropriate
7
+ # for production use. For more information, see:
8
+ # https://cloud.google.com/appengine/docs/flexible/nodejs/configuring-your-app-with-app-yaml
9
+ manual_scaling :
10
+ instances : 1
11
+ resources :
12
+ cpu : 1
13
+ memory_gb : 0.5
14
+ disk_size_gb : 10
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " vacwo -server" ,
3
- "version" : " 1.0 .0" ,
2
+ "name" : " ecis-webchat -server" ,
3
+ "version" : " 0.1 .0" ,
4
4
"main" : " index.js" ,
5
5
"license" : " MIT" ,
6
+ "repository" : {
7
+ "type" : " git" ,
8
+ "url" : " https://github.com/eciis/webchat.git"
9
+ },
10
+ "engines" : {
11
+ "node" : " >=4.3.2"
12
+ },
13
+ "scripts" : {
14
+ "start" : " node server.js"
15
+ },
6
16
"dependencies" : {
7
17
"ws" : " ^6.1.2"
8
18
}
Original file line number Diff line number Diff line change @@ -107,8 +107,9 @@ class Server {
107
107
}
108
108
}
109
109
110
- const port = 8090 ;
111
- new Server ( 8090 ) ;
112
- console . log ( `Server listening on ${ port } ` )
110
+ const port = process . env . PORT || 8090 ;
111
+ new Server ( port ) ;
112
+ console . log ( `Server listening on ${ port } ` ) ;
113
+
113
114
114
115
module . exports . Server = Server ;
You can’t perform that action at this time.
0 commit comments