Skip to content
Myr

Default env to "development" again [thanks aheckmann]

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 663f429 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:lib/express/server.js+2 added-2 removed
40 unmodified lines
41 process.env.NODE_ENV = process.env.EXPRESS_ENV;42 console.warn('\x1b[33mWarning\x1b[0m: EXPRESS_ENV is deprecated, use NODE_ENV.');43 }4445 // Set "env" to NODE_ENV46 this.set('env', process.env.NODE_ENV);45 // Set "env" to NODE_ENV, defaulting to "development"46 this.set('env', process.env.NODE_ENV || 'development');4748 // Expose objects to each other49 this.use(function(req, res, next){50 req.query = {};
292 unmodified lines