From cf0a680fd9dc07ac7b2d95d1cd2bbca5431d4ab6 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Sun, 3 Feb 2019 19:46:58 +0000 Subject: Update --- src/index.js | 2 +- src/server.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/index.js b/src/index.js index 925a166..f678224 100644 --- a/src/index.js +++ b/src/index.js @@ -75,5 +75,5 @@ const models = setUpModels(); sync(); server.setUpRoutes(models, jwtFunctions); -server.listen(); +server.listen(config.port); diff --git a/src/server.js b/src/server.js index 368a101..1de966c 100644 --- a/src/server.js +++ b/src/server.js @@ -19,8 +19,6 @@ var storage = multer.diskStorage({ }) var upload = multer({ storage: storage }) -const port = 80; - const server = express(); // server.use(bodyParser.json()); server.use(cookieParser()) @@ -31,7 +29,7 @@ server.use(function (req, res, next) { next() }) -function listen(){ +function listen(port){ server.listen(port, () => console.info(`Listening on port ${port}!`)); } -- cgit v1.2.3