From 040e67d3a5a522d5f4caf2369efe50dfe4e74fea Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Sun, 26 Oct 2014 13:27:59 -0400 Subject: [PATCH] Try setting the configuration directory from environment again. Signed-off-by: Jason Stephenson --- lib/NCIP/Dancing.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/NCIP/Dancing.pm b/lib/NCIP/Dancing.pm index 108daaa..cb8e638 100644 --- a/lib/NCIP/Dancing.pm +++ b/lib/NCIP/Dancing.pm @@ -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; -- 2.43.2