cmd_aliases => 'p',
isa => 'Int',
is => 'ro',
+ lazy => 1,
default => sub {
Catalyst::Utils::env_value(shift->application_name, 'port') || 3000
},
my ($success, $error) = try_load_class("MooseX::Daemonize::Core");
warn("MooseX::Daemonize is needed for the --background option: $error\n"),
exit 1 if not $success;
- my ($success, $error) = try_load_class("POSIX");
+ ($success, $error) = try_load_class("POSIX");
warn("$error\n"), exit 1 if not $success;
MooseX::Daemonize::Core->meta->apply($self);
POSIX::close($_) foreach (0..2);
cmd_aliases => 'r',
isa => 'Bool',
is => 'ro',
+ lazy => 1,
default => sub {
Catalyst::Utils::env_value(shift->application_name, 'reload') || 0;
},