启动 NODE_ENV=production node app.js
app.configure('development', function(){
app.set('configPath', './confLocal');
});
app.configure('production', function(){
app.set('configPath', './confProduction');
});
通过 configure 在不同的环境设置参数,问题链接
启动 NODE_ENV=production node app.js
app.configure('development', function(){
app.set('configPath', './confLocal');
});
app.configure('production', function(){
app.set('configPath', './confProduction');
});
通过 configure 在不同的环境设置参数,问题链接