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;