package Catalyst::ScriptRole;
use Moose::Role;
-use Plack::Runner;
use MooseX::Types::Moose qw/Str Bool/;
use Pod::Usage;
use MooseX::Getopt;
+use Plack::Loader;
use namespace::autoclean;
with 'MooseX::Getopt' => {
else {
$server = Plack::Loader->auto($self->_plack_loader_args);
}
- $app->run($server, $self->_application_args);
+ $app->run($self->_application_args, $server);
}
1;