mid-way commit
This commit is contained in:
parent
5f549b1305
commit
158124cf37
6 changed files with 92 additions and 79 deletions
|
|
@ -2,28 +2,6 @@ use Plack::Builder;
|
|||
use lib '/data/WebGUI/lib';
|
||||
use WebGUI;
|
||||
|
||||
my $wg = WebGUI->new(
|
||||
root => '/data/WebGUI',
|
||||
config => 'dev.localhost.localdomain.conf',
|
||||
);
|
||||
my $wg = WebGUI->new( root => '/data/WebGUI', site => 'dev.localhost.localdomain.conf' );
|
||||
|
||||
builder {
|
||||
|
||||
# Handle /extras via Plack::Middleware::Static
|
||||
# (or Plack::Middleware::WebGUI could do this for us by looking up extrasPath and extrasURL in site.conf)
|
||||
# enable 'Plack::Middleware::Static',
|
||||
# path => '^' . $wg->config->get('extrasURL') . '/',
|
||||
# root => $wg->config->get('extrasPath');
|
||||
#
|
||||
# # Handle /uploads via Plack::Middleware::WGAccess (including .wgaccess)
|
||||
# # (or Plack::Middleware::WebGUI could do this for us by looking up uploadsPath and uploadsURL in site.conf)
|
||||
# #enable 'Plack::Middleware::WGAccess',
|
||||
# # path => '^' . $wg->config->get('uploadsURL') . '/',
|
||||
# # root => $wg->config->get('uploadsPath');
|
||||
#
|
||||
# enable 'Plack::Middleware::Static',
|
||||
# path => '^' . $wg->config->get('uploadsURL') . '/',
|
||||
# root => $wg->config->get('uploadsPath');
|
||||
|
||||
sub { $wg->run(@_) };
|
||||
}
|
||||
$wg->psgi_app;
|
||||
Loading…
Add table
Add a link
Reference in a new issue