diff --git a/app.js b/app.js index 809469c..365df5f 100644 --- a/app.js +++ b/app.js @@ -47,7 +47,7 @@ app.use('/graphql', graphqlHTTP({ graphiql: true, })); -app.listen(4000); +app.listen(config.port || 4000); // CHECK LOOP (async function () { diff --git a/config.json b/config.json index 9d433ce..7031c57 100644 --- a/config.json +++ b/config.json @@ -1,3 +1,4 @@ { - "checkperiod": 300 + "checkperiod": 300, + "port": 4000 } \ No newline at end of file