Commit db39d222 by ifool

适应聚石塔内容端口号环境变量

parent f8bae178
......@@ -6,7 +6,7 @@ var http = require('http'),
env = process.env,
yaml = require('js-yaml'),
engineConf = {},
serPort = parseInt(env["portslbhttp0"] || env["port.NODE_PORT"] || env["NODE_PORT"] || 8080),
serPort = parseInt(env["port.slbhttp0"] || env["portslbhttp0"] || env["port.NODE_PORT"] || env["NODE_PORT"] || 8080),
workers = parseInt(env.WORKERS || 1);
console.log("Server running at http://127.0.0.1:" + serPort);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment