From 5b00de3c10b7bc9163c8c4457162e364faff9103 Mon Sep 17 00:00:00 2001 From: Braun Patrik Date: Sun, 1 May 2016 10:50:17 +0200 Subject: [PATCH] changing port name to PORT --- backend/server.ts | 14 +++++++------- karma.conf.js | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/backend/server.ts b/backend/server.ts index 1e4f6787..0c7ee3ae 100644 --- a/backend/server.ts +++ b/backend/server.ts @@ -84,14 +84,14 @@ export class Server { - // Get port from environment and store in Express. - this.app.set('port', Config.port); + // Get PORT from environment and store in Express. + this.app.set('port', Config.PORT); // Create HTTP server. this.server = _http.createServer(this.app); - //Listen on provided port, on all network interfaces. - this.server.listen(Config.port); + //Listen on provided PORT, on all network interfaces. + this.server.listen(Config.PORT); this.server.on('error', this.onError); this.server.on('listening', this.onListening); @@ -109,9 +109,9 @@ export class Server { throw error; } - var bind = typeof Config.port === 'string' - ? 'Pipe ' + Config.port - : 'Port ' + Config.port; + var bind = typeof Config.PORT === 'string' + ? 'Pipe ' + Config.PORT + : 'Port ' + Config.PORT; // handle specific listen error with friendly messages switch (error.code) { diff --git a/karma.conf.js b/karma.conf.js index ec010fe3..c11ec10a 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -39,7 +39,7 @@ module.exports = function(config) { // available reporters: https://npmjs.org/browse/keyword/karma-reporter reporters: [ 'mocha', 'coverage', 'coveralls' ], - // web server port + // web server PORT port: 9876, // enable / disable colors in the output (reporters and logs)