Browse files

Adding ledgersmb.psgi which has been verified on Starlet. This allows…

… LedgerSMB to be run with the main dependencies cached in memory.

git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@5110 4979c152-3d1c-0410-bac9-87ea11338e46
  • Loading branch information...
1 parent fb3f28a commit d072ca994d42cda76d5a3ef81c7c6b5228a83f7d einhverfr committed Aug 16, 2012
Showing with 32 additions and 0 deletions.
  1. +32 −0 tools/ledgersmb.psgi
View
32 tools/ledgersmb.psgi
@@ -0,0 +1,32 @@
+#!/usr/bin/plackup
+
+ my $path = "/usr/local/ledgersmb_trunk";
+
+ use Plack::App::CGIBin;
+ use Plack::Builder;
+ use LedgerSMB;
+ use LedgerSMB::Form;
+ use Moose;
+ use CGI::Simple;
+ $CGI::Simple::DISABLE_UPLOADS = 0;
+ use LedgerSMB::PGNumber;
+ use LedgerSMB::PGDate;
+ use Data::Dumper;
+ use LedgerSMB::Auth;
+ use LedgerSMB::Session;
+ use LedgerSMB::Template;
+ use LedgerSMB::Locale;
+ use LedgerSMB::User;
+ use LedgerSMB::Locale;
+ use Try::Tiny;
+ use Devel::Trace;
+ use Plack::Middleware::Static;
+ use Log::Log4perl;
+
+ my $app = Plack::App::CGIBin->new(root => "$path")->to_app;
+ builder {
+ enable "Plack::Middleware::Static",
+ path => qr!ledgersmb_trunk/(css|images|favicon|UI)/!,
+ root => "../";
+ mount '/ledgersmb_trunk' => $app;
+ }

0 comments on commit d072ca9

Please sign in to comment.