| Catalyst-Engine-Server documentation | Contained in the Catalyst-Engine-Server distribution. |
Catalyst::Engine::Server::Single - Catalyst Server Engine
A script using the Catalyst::Engine::Server::Single module might look like:
#!/usr/bin/perl -w
BEGIN {
$ENV{CATALYST_ENGINE} = 'Server::Single';
}
use strict;
use lib '/path/to/MyApp/lib';
use MyApp;
MyApp->run;
This Catalyst engine specialized for standalone deployment.
This class overloads some methods from Catalyst::Engine::Server::Base.
Christian Hansen, ch@ngmedia.com
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
| Catalyst-Engine-Server documentation | Contained in the Catalyst-Engine-Server distribution. |
package Catalyst::Engine::Server::Single; use strict; use base 'Catalyst::Engine::Server::Base';
sub run { my $class = shift; my $server = Catalyst::Engine::Server::Net::Server::Single->new; $server->application($class); $server->run(@_); }
package Catalyst::Engine::Server::Net::Server::Single; use strict; use base qw[Catalyst::Engine::Server::Net::Server Net::Server::Single]; 1;