Added configurable port

This commit is contained in:
Chris Blanchard 2015-07-22 14:58:05 +01:00
parent b91e812fcd
commit c22e1df4e1

View file

@ -7,4 +7,8 @@ var path = require("path");
var baseConfig = require(path.join(__dirname, path.join("environments/" + env)));
if (process.env.PORT) {
baseConfig.port = parseInt(process.env.PORT, 10);
}
module.exports = baseConfig;