Skip Menu |

This queue is for tickets about the Catalyst-Runtime CPAN distribution.

Report information
The Basics
Id: 52604
Status: resolved
Priority: 0/
Queue: Catalyst-Runtime

People
Owner: bobtfish [...] bobtfish.net
Requestors: andrey [...] kostenko.name
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 5.80015
Fixed in: (no value)



Subject: PROJECT_PORT is broken
When you've rewrited Catalyst::Script, you have forgotten about that.
Subject: restart.patch
Index: lib/Catalyst/Script/Server.pm =================================================================== --- lib/Catalyst/Script/Server.pm (revision 12265) +++ lib/Catalyst/Script/Server.pm (working copy) @@ -8,6 +8,7 @@ use Moose; use MooseX::Types::Common::Numeric qw/PositiveInt/; use MooseX::Types::Moose qw/ArrayRef Str Bool Int RegexpRef/; +use Catalyst::Utils; use namespace::autoclean; with 'Catalyst::ScriptRole'; @@ -45,7 +46,10 @@ cmd_aliases => 'p', isa => PositiveInt, is => 'ro', - default => 3000, + default => sub { + my $self = shift; + $ENV{ Catalyst::Utils::class2env($self->application_name . '_PORT')}||3000 + }, documentation => 'Specify a different listening port (to the default port 3000)', );
Thanks for that. I've added tests and taken your fix: Revision Log - /: 12276 - Fixes port environment, RT#52604 (t0m) - http://dev.catalystframework.org/svnweb/Catalyst/revision?rev=12276 Should be in 5.80016 shortly.