refactor: use export global variables instead of express

This commit is contained in:
Wieland Schöbl
2019-03-18 10:12:53 +01:00
committed by Rainer Killinger
parent 8c48552abf
commit 59e4009c5d
7 changed files with 27 additions and 37 deletions

View File

@@ -21,6 +21,7 @@ import {logger} from './common';
* Get port from environment and store in Express.
*/
const port = normalizePort(process.env.PORT || '3000');
// TODO: Can we remove that? It doesn't look like it is read at all.
app.set('port', port);
/**