Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Dev
Setting the port in the configuration
 

Index | Next | Previous | View Flat


domm at cpan

Sep 8, 2008, 1:47 PM


Views: 671
Permalink
Setting the port in the configuration

Hi!

As we have some cat apps running that need to talk to each other, we'd
love to start them on the same port, even if we forget the --port flag
to ourapp_server.pl

After a very short conversation on IRC, I hacked together these two
patches.

port_in_config.Catalyst-Runtime-5.70.patch changes
Catalyst::Engine::HTTP to use the port defined in the 'Engine::Server'
config section. The problem with this approach is that one cannot
override the configured port from the commandline or environment.

port_in_config.Catalyst-Devel-1.00.patch changes lib/Catalyst/Helper.pm
(or rather the appname_server.pl script) to add a check for the config
item when trying to figure out the port.

I like port_in_config.Catalyst-Devel-1.00.patch a bit more, even though
it makes it necessary to regenerate the _server.pl script for all apps
that want the functionality.

What do you think?

Any chances that one of these patches will be applied? Or would you
rather want patches for the devel versions (5.80/1.10) ?


--
#!/usr/bin/perl http://domm.plix.at
for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}
Attachments: port_in_config.Catalyst-Runtime-5.70.patch (0.50 KB)
  port_in_config.Catalyst-Devel-1.00.patch (1.00 KB)

Subject User Time
Setting the port in the configuration domm at cpan Sep 8, 2008, 1:47 PM
    Re: Setting the port in the configuration domm at cpan Oct 1, 2008, 12:19 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.