diff --git a/config/config.js b/config/config.js index a1277ee..c5a681f 100644 --- a/config/config.js +++ b/config/config.js @@ -10,5 +10,6 @@ export default { GITHUB_REDIRECT_URI: "http://localhost/auth/github/callback", gmail_user:"auth.test.reg.email@gmail.com", gmail_password:"sbuLBh9rAV8XD2", - mongodb_url:"mongodb://localhost/" + mongodb_url:"mongodb://localhost/", + server_port:"80" } \ No newline at end of file diff --git a/server/index.ts b/server/index.ts index d3a37a8..8a882ef 100644 --- a/server/index.ts +++ b/server/index.ts @@ -18,7 +18,7 @@ import config from '../config/config' const PASS_MIN = 8; const PASS_MAX = 128; -const port = parseInt(process.env.NODE_PORT||"80") +const port = parseInt(process.env.NODE_PORT||config.server_port) const dev = process.env.NODE_ENV !== 'production' const next_app = next({ dev }) const handle = next_app.getRequestHandler() @@ -143,6 +143,6 @@ next_app.prepare().then(() => { app.set('trust proxy','127.0.0.1') app.listen(port,'localhost', (err) => { if (err) throw err - console.log(`> Ready on ${config.domain}:${port}`) + console.log(`> Ready on ${port}`) }) }) \ No newline at end of file