forked from lix-project/hydra
This commit is contained in:
parent
0be4bad006
commit
95f2362c11
|
@ -4,7 +4,19 @@ use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use Getopt::Long;
|
use Getopt::Long;
|
||||||
use Pod::Usage;
|
use Pod::Usage;
|
||||||
use Catalyst::Helper;
|
eval "use Catalyst::Helper;";
|
||||||
|
|
||||||
|
if ($@) {
|
||||||
|
die <<END;
|
||||||
|
To use the Catalyst development tools including catalyst.pl and the
|
||||||
|
generated script/myapp_create.pl you need Catalyst::Helper, which is
|
||||||
|
part of the Catalyst-Devel distribution. Please install this via a
|
||||||
|
vendor package or by running one of -
|
||||||
|
|
||||||
|
perl -MCPAN -e 'install Catalyst::Devel'
|
||||||
|
perl -MCPANPLUS -e 'install Catalyst::Devel'
|
||||||
|
END
|
||||||
|
}
|
||||||
|
|
||||||
my $force = 0;
|
my $force = 0;
|
||||||
my $mech = 0;
|
my $mech = 0;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
BEGIN {
|
BEGIN {
|
||||||
$ENV{CATALYST_ENGINE} ||= 'HTTP';
|
$ENV{CATALYST_ENGINE} ||= 'HTTP';
|
||||||
$ENV{CATALYST_SCRIPT_GEN} = 31;
|
$ENV{CATALYST_SCRIPT_GEN} = 32;
|
||||||
require Catalyst::Engine::HTTP;
|
require Catalyst::Engine::HTTP;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,9 +17,9 @@ my $debug = 0;
|
||||||
my $fork = 0;
|
my $fork = 0;
|
||||||
my $help = 0;
|
my $help = 0;
|
||||||
my $host = undef;
|
my $host = undef;
|
||||||
my $port = $ENV{HYDRAFRONTEND_PORT} || $ENV{CATALYST_PORT} || 3000;
|
my $port = $ENV{HYDRA_PORT} || $ENV{CATALYST_PORT} || 3000;
|
||||||
my $keepalive = 0;
|
my $keepalive = 0;
|
||||||
my $restart = $ENV{HYDRAFRONTEND_RELOAD} || $ENV{CATALYST_RELOAD} || 0;
|
my $restart = $ENV{HYDRA_RELOAD} || $ENV{CATALYST_RELOAD} || 0;
|
||||||
my $restart_delay = 1;
|
my $restart_delay = 1;
|
||||||
my $restart_regex = '(?:/|^)(?!\.#).+(?:\.yml$|\.yaml$|\.conf|\.pm)$';
|
my $restart_regex = '(?:/|^)(?!\.#).+(?:\.yml$|\.yaml$|\.conf|\.pm)$';
|
||||||
my $restart_directory = undef;
|
my $restart_directory = undef;
|
||||||
|
|
Loading…
Reference in a new issue