Skip to content
Myr

docs for multiple envs in app.configure() calls

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 4dfc1a6 · Browse files · 1 file+6 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:docs/guide.md+6 added
69 unmodified lines
70 app.use(express.static(__dirname + '/public', { maxAge: oneYear }));71 app.use(express.errorHandler());72 });7374For similar environments you may also pass several env strings:7576 app.configure('stage', 'prod', function(){77 // config78 });7980For internal and arbitrary settings Express provides the _set(key[, val])_, _enable(key)_, _disable(key)_ methods:8182 app.configure(function(){83 app.set('views', __dirname + '/views');
1333 unmodified lines