From 76c79462be1e2bf8847be2ce2c119e2151836e07 Mon Sep 17 00:00:00 2001 From: dbroqua Date: Sun, 24 Sep 2023 22:11:32 +0200 Subject: [PATCH] Minor change for startup --- package.json | 2 +- src/app.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 0a86c5c..2a0aa93 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "start": "node ./dist/bin/www", "lint": "npx eslint ./src --ext .js", "lint:fix": "npx eslint --fix ./src --ext .js", - "prepare": "husky install" + "prepare": "npx husky install" }, "repository": { "type": "git", diff --git a/src/app.js b/src/app.js index 79cd620..f9c85d2 100644 --- a/src/app.js +++ b/src/app.js @@ -13,7 +13,7 @@ import passportConfig from './libs/passport'; import globalRoutes from './routes'; import authRoutes from './routes/auth'; -import {trustProxy, env, mongoDbUri, secret} from './config'; +import {trustProxy, env, mongoDbUri, secret, port} from './config'; import {isXhr, getBaseUrl} from './helpers'; @@ -120,6 +120,6 @@ app.use((error, req, res, next) => { } }); -console.log('Server ready!'); +console.log(`Server ready and listening on port ${port}!`); export default app;