Merge pull request #73 from stuartpb/patch-1

Use PORT and IP environment variables
This commit is contained in:
Mattias Erming 2014-09-09 15:07:12 +02:00
commit 5940d1d800

View File

@ -16,8 +16,8 @@ program
console.log("Create a new user with 'shout add <name>'.") console.log("Create a new user with 'shout add <name>'.")
console.log(""); console.log("");
} else { } else {
var host = program.host || config.host; var host = program.host || process.env.IP || config.host;
var port = program.port || config.port; var port = program.port || process.env.PORT || config.port;
shout(port, host, config.public); shout(port, host, config.public);
} }
}); });