From d73a781c34d8695038496473a15ec7884b690333 Mon Sep 17 00:00:00 2001 From: bhaskar Date: Thu, 18 May 2023 15:31:14 +0530 Subject: [PATCH 1/4] changes --- src/api-docs/api.html | 1 + src/config/swagger.js | 3 ++- src/index.js | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/api-docs/api.html b/src/api-docs/api.html index dfbff504..185eda19 100644 --- a/src/api-docs/api.html +++ b/src/api-docs/api.html @@ -50,6 +50,7 @@ diff --git a/src/config/swagger.js b/src/config/swagger.js index 81456d6a..387f64a2 100644 --- a/src/config/swagger.js +++ b/src/config/swagger.js @@ -15,7 +15,8 @@ exports.options = { // We have to change this beacause this is running on local // we have to run on this on swagger //host: "localhost:5000", //Devlopemnt host on lcoal - host: "35.207.198.4:3000", //Production for swagger + + host: "35.207.198.4:3000", //Production for swagger schemes: ["http"], consumes: ["application/json"], produces: ["application/json"], diff --git a/src/index.js b/src/index.js index 5941ddad..aad38643 100644 --- a/src/index.js +++ b/src/index.js @@ -358,6 +358,8 @@ fastify.register(require("./routes/forTestingRoute")); const start = async () => { try { + + await fastify.listen(3000, "0.0.0.0"); fastify.log.info(`listening on ${fastify.server.address().port}`); fastify.log.info(`server listening on ${fastify.config}`); From 611b810cd8edf3b3be73aba649ecdefb53f667df Mon Sep 17 00:00:00 2001 From: bhaskar Date: Thu, 18 May 2023 15:39:09 +0530 Subject: [PATCH 2/4] test --- src/api-docs/api.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api-docs/api.html b/src/api-docs/api.html index 185eda19..07a95567 100644 --- a/src/api-docs/api.html +++ b/src/api-docs/api.html @@ -49,7 +49,7 @@ Date: Thu, 18 May 2023 15:41:52 +0530 Subject: [PATCH 3/4] test --- src/api-docs/api.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api-docs/api.html b/src/api-docs/api.html index 07a95567..185eda19 100644 --- a/src/api-docs/api.html +++ b/src/api-docs/api.html @@ -49,7 +49,7 @@ Date: Thu, 18 May 2023 16:17:12 +0530 Subject: [PATCH 4/4] changes --- src/api-docs/api.html | 2 +- src/config/swagger.js | 4 ++-- src/index.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api-docs/api.html b/src/api-docs/api.html index 185eda19..95071855 100644 --- a/src/api-docs/api.html +++ b/src/api-docs/api.html @@ -49,7 +49,7 @@ { try { - await fastify.listen(3000, "0.0.0.0"); + await fastify.listen(5000, "0.0.0.0"); fastify.log.info(`listening on ${fastify.server.address().port}`); fastify.log.info(`server listening on ${fastify.config}`); } catch (err) {