Changeset 255
- Timestamp:
- 06/25/07 07:20:01 (19 months ago)
- Location:
- veekun/trunk/script
- Files:
-
- 5 modified
-
vee_cgi.pl (modified) (3 diffs)
-
vee_create.pl (modified) (3 diffs)
-
vee_fastcgi.pl (modified) (6 diffs)
-
vee_server.pl (modified) (6 diffs)
-
vee_test.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
veekun/trunk/script/vee_cgi.pl
r1 r255 1 #! C:\Perl\bin\perl.exe-w1 #!/usr/bin/perl -w 2 2 3 3 BEGIN { $ENV{CATALYST_ENGINE} ||= 'CGI' } 4 4 5 5 use strict; 6 use warnings; 6 7 use FindBin; 7 8 use lib "$FindBin::Bin/../lib"; … … 22 23 =head1 DESCRIPTION 23 24 24 Run a Catalyst application as cgi.25 Run a Catalyst application as a cgi script. 25 26 26 27 =head1 AUTHOR … … 30 31 =head1 COPYRIGHT 31 32 32 Copyright 2004 Sebastian Riedel. All rights reserved.33 33 34 34 This library is free software, you can redistribute it and/or modify -
veekun/trunk/script/vee_create.pl
r1 r255 1 #! C:\Perl\bin\perl.exe-w1 #!/usr/bin/perl -w 2 2 3 3 use strict; 4 use warnings; 4 5 use Getopt::Long; 5 6 use Pod::Usage; … … 44 45 vee_create.pl view TT TT 45 46 vee_create.pl model My::Model 46 vee_create.pl model SomeDB DBIC::SchemaLoader dbi:SQLite:/tmp/my.db 47 vee_create.pl model AnotherDB DBIC::SchemaLoader dbi:Pg:dbname=foo root 4321 47 vee_create.pl model SomeDB DBIC::Schema MyApp::Schema create=dynamic\ 48 dbi:SQLite:/tmp/my.db 49 vee_create.pl model AnotherDB DBIC::Schema MyApp::Schema create=static\ 50 dbi:Pg:dbname=foo root 4321 48 51 49 52 See also: … … 62 65 63 66 Sebastian Riedel, C<sri@oook.de> 67 Maintained by the Catalyst Core Team. 64 68 65 69 =head1 COPYRIGHT 66 67 Copyright 2004 Sebastian Riedel. All rights reserved.68 70 69 71 This library is free software, you can redistribute it and/or modify -
veekun/trunk/script/vee_fastcgi.pl
r1 r255 1 #! C:\Perl\bin\perl.exe-w1 #!/usr/bin/perl -w 2 2 3 3 BEGIN { $ENV{CATALYST_ENGINE} ||= 'FastCGI' } 4 4 5 5 use strict; 6 use warnings; 6 7 use Getopt::Long; 7 8 use Pod::Usage; … … 11 12 12 13 my $help = 0; 13 my ( $listen, $nproc, $pidfile, $manager, $detach );14 my ( $listen, $nproc, $pidfile, $manager, $detach, $keep_stderr ); 14 15 15 16 GetOptions( … … 20 21 'manager|M=s' => \$manager, 21 22 'daemon|d' => \$detach, 23 'keeperr|e' => \$keep_stderr, 22 24 ); 23 25 … … 30 32 manager => $manager, 31 33 detach => $detach, 34 keep_stderr => $keep_stderr, 32 35 } 33 36 ); … … 58 61 (FCGI::ProcManager sub-class) 59 62 or empty string to disable 63 -e -keeperr send error messages to STDOUT, not 64 to the webserver 60 65 61 66 =head1 DESCRIPTION … … 66 71 67 72 Sebastian Riedel, C<sri@oook.de> 73 Maintained by the Catalyst Core Team. 68 74 69 75 =head1 COPYRIGHT 70 71 Copyright 2004 Sebastian Riedel. All rights reserved.72 76 73 77 This library is free software, you can redistribute it and/or modify -
veekun/trunk/script/vee_server.pl
r1 r255 1 #! C:\Perl\bin\perl.exe-w1 #!/usr/bin/perl -w 2 2 3 3 BEGIN { 4 4 $ENV{CATALYST_ENGINE} ||= 'HTTP'; 5 $ENV{CATALYST_SCRIPT_GEN} = 27; 5 $ENV{CATALYST_SCRIPT_GEN} = 30; 6 require Catalyst::Engine::HTTP; 6 7 } 7 8 8 9 use strict; 10 use warnings; 9 11 use Getopt::Long; 10 12 use Pod::Usage; … … 12 14 use lib "$FindBin::Bin/../lib"; 13 15 14 my $debug = 0; 15 my $fork = 0; 16 my $help = 0; 17 my $host = undef; 18 my $port = 3000; 19 my $keepalive = 0; 20 my $restart = 0; 21 my $restart_delay = 1; 22 my $restart_regex = '\.yml$|\.yaml$|\.pm$'; 16 my $debug = 0; 17 my $fork = 0; 18 my $help = 0; 19 my $host = undef; 20 my $port = 3000; 21 my $keepalive = 0; 22 my $restart = 0; 23 my $restart_delay = 1; 24 my $restart_regex = '\.yml$|\.yaml$|\.pm$'; 25 my $restart_directory = undef; 23 26 24 27 my @argv = @ARGV; 25 28 26 29 GetOptions( 27 'debug|d' => \$debug, 28 'fork' => \$fork, 29 'help|?' => \$help, 30 'host=s' => \$host, 31 'port=s' => \$port, 32 'keepalive|k' => \$keepalive, 33 'restart|r' => \$restart, 34 'restartdelay|rd=s' => \$restart_delay, 35 'restartregex|rr=s' => \$restart_regex 30 'debug|d' => \$debug, 31 'fork' => \$fork, 32 'help|?' => \$help, 33 'host=s' => \$host, 34 'port=s' => \$port, 35 'keepalive|k' => \$keepalive, 36 'restart|r' => \$restart, 37 'restartdelay|rd=s' => \$restart_delay, 38 'restartregex|rr=s' => \$restart_regex, 39 'restartdirectory=s' => \$restart_directory, 36 40 ); 37 41 … … 50 54 51 55 Vee->run( $port, $host, { 52 argv => \@argv, 53 'fork' => $fork, 54 keepalive => $keepalive, 55 restart => $restart, 56 restart_delay => $restart_delay, 57 restart_regex => qr/$restart_regex/ 56 argv => \@argv, 57 'fork' => $fork, 58 keepalive => $keepalive, 59 restart => $restart, 60 restart_delay => $restart_delay, 61 restart_regex => qr/$restart_regex/, 62 restart_directory => $restart_directory, 58 63 } ); 59 64 … … 76 81 -p -port port (defaults to 3000) 77 82 -k -keepalive enable keep-alive connections 78 -r -restart restart when files g ot modified83 -r -restart restart when files get modified 79 84 (defaults to false) 80 85 -rd -restartdelay delay between file checks … … 82 87 a restart when modified 83 88 (defaults to '\.yml$|\.yaml$|\.pm$') 89 -restartdirectory the directory to search for 90 modified files 91 (defaults to '../') 84 92 85 93 See also: … … 94 102 95 103 Sebastian Riedel, C<sri@oook.de> 104 Maintained by the Catalyst Core Team. 96 105 97 106 =head1 COPYRIGHT 98 99 Copyright 2004 Sebastian Riedel. All rights reserved.100 107 101 108 This library is free software, you can redistribute it and/or modify -
veekun/trunk/script/vee_test.pl
r1 r255 1 #! C:\Perl\bin\perl.exe-w1 #!/usr/bin/perl -w 2 2 3 3 use strict; 4 use warnings; 4 5 use Getopt::Long; 5 6 use Pod::Usage; … … 44 45 45 46 Sebastian Riedel, C<sri@oook.de> 47 Maintained by the Catalyst Core Team. 46 48 47 49 =head1 COPYRIGHT 48 49 Copyright 2004 Sebastian Riedel. All rights reserved.50 50 51 51 This library is free software, you can redistribute it and/or modify
