1 package Catalyst::Helper::SCGI;
12 Catalyst::Helper::SCGI - SCGI helper to create a scgi runner script to run the SCGI engine.
18 use the helper to build the view module and associated templates.
20 $ script/myapp_create.pl SCGI
24 This helper module creates the runner script for the SCGI engine.
28 =head2 $self->mk_stuff ( $c, $helper, @args )
30 Create SCGI runner script
35 my ( $self, $helper, @args ) = @_;
37 my $base = $helper->{base};
38 my $app = lc($helper->{app});
40 $helper->render_file( "scgi_script",
41 File::Spec->catfile( $base, 'script', "$app\_scgi.pl" ) );
42 chmod 0700, "$base/script/$app\_scgi.pl";
47 Orlando Vazquez, C< <orlando at 2wycked.net> >
51 Please report any bugs or feature requests to
52 C<orlando at 2wycked.net>
54 =head1 ACKNOWLEDGEMENTS
56 =head1 COPYRIGHT & LICENSE
58 Copyright 2009 Orlando Vazquez, all rights reserved.
59 Copyright 2006 Victor Igumnov, all rights reserved.
61 This program is free software; you can redistribute it and/or modify it
62 under the same terms as Perl itself.
73 BEGIN { $ENV{CATALYST_ENGINE} ||= 'SCGI' }
80 use lib "$FindBin::Bin/../lib";
84 my ( $port, $detach );
89 'daemon|d' => \$detach,
92 pod2usage(1) if $help;
103 [% app %]_scgi.pl - Catalyst SCGI
107 [% app %]_scgi.pl [options]
110 -? -help display this help and exits
111 -p -port Port to listen on
116 Run a Catalyst application as SCGI.
120 Orlando Vazquez C<< orlando@2wycked.net >>
124 This library is free software, you can redistribute it and/or modify
125 it under the same terms as Perl itself.