Skip to content

Commit

Permalink
适配iisnode,恢复端口环境变量
Browse files Browse the repository at this point in the history
  • Loading branch information
heeroluo committed Feb 12, 2016
1 parent 5c37b02 commit 56b1cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/www
Expand Up @@ -12,7 +12,7 @@ var http = require('http');
* Get port from environment and store in Express.
*/
// 修改为通过配置文件设置端口
var port = normalizePort(require('../config').port || '3000');
var port = normalizePort(process.env.PORT || require('../config').port || '3000');
// var port = normalizePort(process.env.PORT || '3000');
app.set('port', port);

Expand Down

0 comments on commit 56b1cbf

Please sign in to comment.