Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Assume 'development' environment if NODE_ENV is not set #518

Closed
wants to merge 1 commit into from

2 participants

@Fodi69

And therefore run all the configurations for the 'development' environment

@Fodi69 Fodi69 Assume 'development' environment if NODE_ENV is not set, and therefor…
…e run all the configurations for the 'development' environment
5310d99
@rauchg
Owner

Test case plzzzz

@rauchg rauchg closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 11, 2011
  1. @Fodi69

    Assume 'development' environment if NODE_ENV is not set, and therefor…

    Fodi69 authored
    …e run all the configurations for the 'development' environment
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/manager.js
View
4 lib/manager.js
@@ -236,7 +236,9 @@ Manager.prototype.disabled = function (key) {
Manager.prototype.configure = function (env, fn) {
if ('function' == typeof env) {
env.call(this);
- } else if (env == process.env.NODE_ENV) {
+ } else if (env == process.env.NODE_ENV ||
+ (!process.env.NODE_ENV && env == 'development'))
+ {
fn.call(this);
}
Something went wrong with that request. Please try again.