File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ server.use(
5959)
6060
6161// Start the application, listening on port 3000
62- server . listen ( 3000 , ( ) =>
62+ server . listen ( process . env . PORT || 3000 , ( ) =>
6363 console . log ( `Listening on port 3000.
6464
6565http://localhost:3000/graphql
Original file line number Diff line number Diff line change 11{
22 "name" : " graphql-rest-api-demo" ,
33 "version" : " 0.0.1" ,
4- "description" :
5- " A demo of what an equivalent REST API and GraphQL interface look like." ,
4+ "description" : " A demo of what an equivalent REST API and GraphQL interface look like." ,
65 "main" : " graphql-server.js" ,
76 "scripts" : {
87 "start" : " node graphql-server.js" ,
98 "start-rest" : " node rest-server.js" ,
10- "prettify" : " prettier --write *.js" ,
11- "deploy" : " now -e NODE_ENV=production -e MONGO_URL=@ch1-mongo-url" ,
12- "alias" : " now alias"
13- },
14- "now" : {
15- "name" : " guide-ch1" ,
16- "alias" : " ch1.graphql.guide"
9+ "prettify" : " prettier --write *.js"
1710 },
1811 "author" : " John Resig <jeresig@gmail.com>" ,
1912 "license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments