[Catalyst] Re: ServerDB 1.01
Vsevolod (Simon) Ilyushchenko
simonf at cshl.edu
Mon Jun 27 16:03:06 CEST 2005
Will,
At the time, I was not able to make a Catalyst app run under a
subdirectory (/hops) instead of the top level of the site. I'm getting
close to putting Catalyst in production, so I'd like to address this again.
Simon
Will Hawes wrote on 06/24/2005 10:53 AM:
> Sorry, that should have read "base", not "$c->config->{uri_base}".
>
> Having reviewed the Hops code, I'm not entirely sure what purpose "uri_base" serves. It seems just to be a hard coded version of "base" as provided dynamically by Catalyst as far as I can tell. That would make it both inferior and unnecessary.
>
> Maybe I am missing something. Simon?
>
> wh
>
> ----- Original Message -----
> From: Will Hawes <info at whawes.co.uk>
> To: catalyst at lists.rawmode.org
> Sent: Fri, 24 Jun 2005 12:56:04 +0100
> Subject: ServerDB 1.01
>
>
>
>>I'd like to suggest a minor improvement to the ServerDB 1.01 example.
>>
>>Unlike Hops, neither the templates nor the code itself take
>>$c->config->{uri_base} into account, making all URLs relative to the site root.
>>
>>While this is not a problem running under the test server, it can be from other
>>environments, e.g. from a CGI script or even under a mod_perl setup without
>>admin control.
>>
>>Changing the above would illustrate better that Catalyst apps can run under
>>multiple environments using a single configuration.
>>
>>wh
>>
>
>
>
>
--
Simon (Vsevolod ILyushchenko) simonf at cshl.edu
http://www.simonf.com
Terrorism is a tactic and so to declare war on terrorism
is equivalent to Roosevelt's declaring war on blitzkrieg.
Zbigniew Brzezinski, U.S. national security advisor, 1977-81
More information about the Catalyst
mailing list