X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fsbin%2Fstandalone_httpd;h=5bc8d0c8b11c8866fab2926acdc3bd939dda7b15;hp=3386cd1febdf6b6d721cfbbdc446988a5c92cb2b;hb=c7bc6770f2f0b4413b788f8fc9abde6ad5548da3;hpb=c24d6e2242ae0e026684b8f95decf156aba6e75e diff --git a/rt/sbin/standalone_httpd b/rt/sbin/standalone_httpd index 3386cd1fe..5bc8d0c8b 100755 --- a/rt/sbin/standalone_httpd +++ b/rt/sbin/standalone_httpd @@ -3,7 +3,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2013 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -91,6 +91,7 @@ if (grep { m/help/ } @ARGV) { require RT; RT->LoadConfig(); +RT->InitPluginPaths(); RT->InitLogging(); require Module::Refresh if RT->Config->Get('DevelMode'); @@ -172,7 +173,7 @@ if (caller) { require Plack::Runner; my $is_fastcgi = $0 =~ m/fcgi$/; -my $r = Plack::Runner->new( $0 =~ 'standalone' ? ( server => 'Standalone' ) : +my $r = Plack::Runner->new( $0 =~ /standalone/ ? ( server => 'Standalone' ) : $is_fastcgi ? ( server => 'FCGI' ) : (), env => 'deployment' );