Skip to content

Instantly share code, notes, and snippets.

@popomore
Created September 25, 2012 16:55
Show Gist options
  • Save popomore/3783120 to your computer and use it in GitHub Desktop.
Save popomore/3783120 to your computer and use it in GitHub Desktop.
express 备忘

configure 使用

启动 NODE_ENV=production node app.js

app.configure('development', function(){
  app.set('configPath', './confLocal');
});

app.configure('production', function(){
  app.set('configPath', './confProduction');
});

通过 configure 在不同的环境设置参数,问题链接

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment