[Catalyst] home dir set to /home/MyApp/lib/MyApp

Matt S Trout dbix-class at trout.me.uk
Tue Feb 5 08:39:46 GMT 2008


On Mon, Feb 04, 2008 at 10:20:29AM +0100, Jochen Luig wrote:
> Hi,
> 
> I encountered some strange behaviour in my Catalyst App regarding 
> determination of the home directory.
> The App is the result of an attempt to manually merge two apps which I 
> know is error-prone in the first place but I can't help it at the 
> moment. And because the error I encountered seems to happen early in the 
> initialization cycle I think it may be resolvable.
> The two Apps as well as the resulting App run with mod_perl but the 
> behavior is the same when starting the App with the test server via 
> script/myapp_server.pl.
> So I created a directory /home/MyTest on the server and put the Modules 
> in there in accordance to the Catalyst directory structure.
> Now Catalyst sets the home directory to /home/MyTest/lib/MyApp instead 
> of the expected /home/MyTest. As a quick fix I tried to use the -Home 
> flag as follows:

Don't delete the Makefile.PL

Catalyst works with installed apps as well as running the app from an
unpacked dist. Since Makefile.PL isn't installed, it uses that to work out
whether you've installed it or not.

Since without the Makefile.PL you also can't run 'make test' or 'make
installdeps' it's pretty insane to delete it anyway - so don't :)

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/            http://www.shadowcat.co.uk/servers/



More information about the Catalyst mailing list