# -Debug: activates the debug mode for very useful log messages
# ConfigLoader: will load the configuration from a Config::General file in the
# application's home directory
-# Static::Simple: will serve static files from the application's root
+# Static::Simple: will serve static files from the application's root
# directory
use parent qw/Catalyst/;
Static::Simple/;
our $VERSION = '0.01';
-# Configure the application.
+# Configure the application.
#
# Note that settings in [% appprefix %].conf (or other external
# configuration file that you set up manually) take precedence
# over this when using ConfigLoader. Thus configuration
# details given here can function as a default configuration,
-# with a external configuration file acting as an override for
+# with an external configuration file acting as an override for
# local deployment.
__PACKAGE__->config( name => '[% name %]' );
my ( $self, $c ) = @_;
$c->response->body( 'Page not found' );
$c->response->status(404);
-
}
=head2 end
Attempt to render a view, if needed.
-=cut
+=cut
sub end : ActionClass('RenderView') {}
my $help = 0;
my ( $listen, $nproc, $pidfile, $manager, $detach, $keep_stderr );
-
+
GetOptions(
'help|?' => \$help,
'listen|l=s' => \$listen,
pod2usage(1) if $help;
-[% name %]->run(
- $listen,
+[% name %]->run(
+ $listen,
{ nproc => $nproc,
- pidfile => $pidfile,
+ pidfile => $pidfile,
manager => $manager,
detach => $detach,
keep_stderr => $keep_stderr,
=head1 SYNOPSIS
[% appprefix %]_fastcgi.pl [options]
-
+
Options:
-? -help display this help and exits
-l -listen Socket path to listen on
__server__
[% startperl %]
-BEGIN {
+BEGIN {
$ENV{CATALYST_ENGINE} ||= 'HTTP';
$ENV{CATALYST_SCRIPT_GEN} = [% scriptgen %];
require Catalyst::Engine::HTTP;
-}
+}
use strict;
use warnings;
=cut
-=head2 index
+=head2 index
=cut