Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 23 lines (19 sloc) 0.887 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
# Some ways to achieve the same thing from the command line:
# plackup -MWebGUI -e 'WebGUI->new'
# plackup -MWebGUI -e 'WebGUI->new("dev.localhost.localdomain.conf")'
# plackup -MWebGUI -e 'WebGUI->new(root => "/data/WebGUI", site => "dev.localhost.localdomain.conf")'
#
# Or from a .psgi file:
# my $app = WebGUI->new( root => '/data/WebGUI', site => 'dev.localhost.localdomain.conf' )->psgi_app;


    
    # Extras
    my $extrasURL = $wg->config->get('extrasURL');
    my $extrasPath = $wg->config->get('extrasPath');
    enable 'Plack::Middleware::Static',
        path => sub { s{^$extrasURL/}{} },
        root => "$extrasPath/";
    
    # Uploads
    my $uploadsURL = $wg->config->get('uploadsURL');
    my $uploadsPath = $wg->config->get('uploadsPath');
    enable 'Plack::Middleware::Static',
        path => sub { s{^$uploadsURL/}{} },
        root => "$uploadsPath/";
Something went wrong with that request. Please try again.