Merge pull request #863 from roramirez/message-port-server

Message port server
This commit is contained in:
Michael Teeuw 2017-04-22 18:57:35 +02:00 committed by GitHub
commit 2b2c2de583
2 changed files with 2 additions and 2 deletions

View File

@ -24,6 +24,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Fixed ### Fixed
- Fix instruction in README for using automatically installer script. - Fix instruction in README for using automatically installer script.
- Fix double message about port when server is starting
## [2.1.1] - 2017-04-01 ## [2.1.1] - 2017-04-01

View File

@ -15,14 +15,13 @@ var fs = require("fs");
var helmet = require("helmet"); var helmet = require("helmet");
var Server = function(config, callback) { var Server = function(config, callback) {
console.log("Starting server on port " + config.port + " ... ");
var port = config.port; var port = config.port;
if (process.env.MM_PORT) { if (process.env.MM_PORT) {
port = process.env.MM_PORT; port = process.env.MM_PORT;
} }
console.log("Starting server op port " + port + " ... "); console.log("Starting server on port " + port + " ... ");
server.listen(port, config.address ? config.address : null); server.listen(port, config.address ? config.address : null);