1 package Catalyst::Helper::SCGI;
10 Catalyst::Helper::SCGI - SCGI helper to create a scgi runner script to run the SCGI engine.
16 use the helper to build the view module and associated templates.
18 $ script/myapp_create.pl SCGI -p 9000
22 This helper module creates the runner script for the SCGI engine.
26 =head2 $self->mk_stuff ( $c, $helper, @args )
28 Create SCGI runner script
33 my ( $self, $helper, @args ) = @_;
35 my $base = $helper->{base};
36 my $app = lc($helper->{app});
38 $helper->render_file( "scgi_script",
39 File::Spec->catfile( $base, 'script', "$app\_scgi.pl" ) );
40 chmod 0700, "$base/script/$app\_scgi.pl";
45 Victor Igumnov, C<< <victori at lamer0.com> >>
49 Please report any bugs or feature requests to
50 C<victori at cpan.org>
52 =head1 ACKNOWLEDGEMENTS
54 =head1 COPYRIGHT & LICENSE
56 Copyright 2006 Victor Igumnov, all rights reserved.
58 This program is free software; you can redistribute it and/or modify it
59 under the same terms as Perl itself.
70 BEGIN { $ENV{CATALYST_ENGINE} ||= 'SCGI' }
77 use lib "$FindBin::Bin/../lib";
81 my ( $port, $detach );
86 'daemon|d' => \$detach,
89 pod2usage(1) if $help;
100 [% app %]_scgi.pl - Catalyst SCGI
104 [% app %]_scgi.pl [options]
107 -? -help display this help and exits
108 -p -port Port to listen on
113 Run a Catalyst application as SCGI.
117 Victor Igumnov, C<victori@cpan.org>
121 This library is free software, you can redistribute it and/or modify
122 it under the same terms as Perl itself.