File tree 2 files changed +3
-10
lines changed
2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ server.use(
59
59
)
60
60
61
61
// Start the application, listening on port 3000
62
- server . listen ( 3000 , ( ) =>
62
+ server . listen ( process . env . PORT || 3000 , ( ) =>
63
63
console . log ( `Listening on port 3000.
64
64
65
65
http://localhost:3000/graphql
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " graphql-rest-api-demo" ,
3
3
"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." ,
6
5
"main" : " graphql-server.js" ,
7
6
"scripts" : {
8
7
"start" : " node graphql-server.js" ,
9
8
"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"
17
10
},
18
11
"author" :
" John Resig <[email protected] >" ,
19
12
"license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments