Minor change for startup

This commit is contained in:
Damien Broqua 2023-09-24 22:11:32 +02:00
parent 762d0aff2f
commit 76c79462be
2 changed files with 3 additions and 3 deletions

View File

@ -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",

View File

@ -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;