Try setting the configuration directory from environment again.
authorJason Stephenson <jason@sigio.com>
Sun, 26 Oct 2014 17:27:59 +0000 (13:27 -0400)
committerJason Stephenson <jason@sigio.com>
Sun, 26 Oct 2014 17:27:59 +0000 (13:27 -0400)
Signed-off-by: Jason Stephenson <jason@sigio.com>
lib/NCIP/Dancing.pm

index 108daaa..cb8e638 100644 (file)
@@ -5,11 +5,10 @@ our $VERSION = '0.1';
 
 use NCIP;
 
-my $conf_dir = $ENV{'NCIP_CONFIG_DIR'} || 't/config_sample';
 
 any [ 'get', 'post' ] => '/' => sub {
     content_type 'application/xml';
-    my $ncip = NCIP->new($conf_dir);
+    my $ncip = NCIP->new($ENV{NCIP_CONFIG_DIR} || 't/config_sample');
     my $xml  = param 'xml';
     if ( request->is_post ) {
         $xml = request->body;