I've built an external test server harness as described in:
http://www.catalystframework.org/calendar/2006/7, but I'm hitting some snags
with lighttpd.
For the following root controller code:
sub index : Private {
my ( $self, $c ) = @_;
$c->res->redirect( $c->uri_for('/content/') );
}
and the following test code:
$mech->get_ok( 'http://localhost/', 'got front page ok' );
warn "URI: " . $mech->uri;
With the built in server, and a lighttpd config with deployment at server
root, everything is fine, and $mech->uri is http://$CATALYST_SERVER/content
as it is supposed to be.
However when deployed at non root as below:
fastcgi . server = (
"/fastcgi/" => ( # doesn't work without the trailing slash on
/fastcgi/ as well btw
"FastCgiTest" => (
"socket" => "$app_home/t/test.socket",
"check-local" => "disable",
"bin-path" => "$app_home/script/wiab_fastcgi.pl",
"min-procs" => 1,
"max-procs" => 1,
"idle-timeout" => 20
)
)
)
};
$mech->uri is http://$CATALYST_SERVER/fastcgi/fastcgi/content
What's going on here? I've tried Catalyst::Plugin::Lighttpd as described
here: http://lists.scsys.co.uk/pipermail/catalyst/2006-June/008361.html but
with no luck.
Cheers
kd
_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/