From 019ca272432e850c0ad2901eec7b4dde131ec696 Mon Sep 17 00:00:00 2001 From: ryzetech Date: Thu, 19 Jan 2023 10:08:35 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20added=20host=20port=20to=20confi?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 2 +- config.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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