Skip to content
Browse files

Check CONNECT_ENV before connectEnv.name

  • Loading branch information...
1 parent 943f1df commit 82dbae61851d726b99fb65af74f032d7df37f499 @tj tj committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/express/server.js
View
5 lib/express/server.js
@@ -37,7 +37,10 @@ var Server = exports = module.exports = function Server(middleware){
this.set('home', '/');
// Set "env" to {EXPRESS,CONNECT}_ENV
- this.set('env', process.env.EXPRESS_ENV || process.connectEnv.name);
+ this.set('env',
+ process.env.EXPRESS_ENV ||
+ process.env.CONNECT_ENV ||
+ process.connectEnv.name);
// Expose objects to each other
this.use(function(req, res, next){

0 comments on commit 82dbae6

Please sign in to comment.
Something went wrong with that request. Please try again.