Skip to content

Instantly share code, notes, and snippets.

@tomill
Created March 2, 2012 08:17
Show Gist options
  • Save tomill/1956732 to your computer and use it in GitHub Desktop.
Save tomill/1956732 to your computer and use it in GitHub Desktop.
DANCER_ENVIRONMENT is too long
diff --git a/lib/Dancer/Config.pm b/lib/Dancer/Config.pm
index 8580b24..1b17922 100644
--- a/lib/Dancer/Config.pm
+++ b/lib/Dancer/Config.pm
@@ -217,6 +217,7 @@ sub load_default_settings {
$SETTINGS->{logger} ||= $ENV{DANCER_LOGGER} || 'file';
$SETTINGS->{environment} ||=
$ENV{DANCER_ENVIRONMENT}
+ || $ENV{DANCER_ENV}
|| $ENV{PLACK_ENV}
|| 'development';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment