[Catalyst] [patch] Catalyst::Engine::HTTP exec() options

Chisel Wright chisel at herlpacker.co.uk
Tue Dec 4 22:48:47 GMT 2007


This morning I was playing about with some i18n and finally got bored if
having to restart the server myself after editing .po files.

I had a look at myapp_server.pl's options and spotted the useful looking
-restartregex option.

So, I edited my startup alias to include:

  -rr '.(?:pm|po|yaml|yml)$'

only to find that there were shell (bash) errors being emitted.

It turns out that although I escaped the regex option on the
command-line this isn't being preserved in C::E::HTTP.

I'm not sure how best to test it, but I've attached a proposed patch for
the module.

Chisel
-- 
Chisel Wright
e: chisel at herlpacker.co.uk
w: http://www.herlpacker.co.uk/

  If you were MEANT to understand it, we wouldn't have called it 'code'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Catalyst_Engine_HTTP_restart.patch
Type: text/x-diff
Size: 521 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20071204/e9c26d1e/Catalyst_Engine_HTTP_restart.bin


More information about the Catalyst mailing list