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

2008-02-05 Thread Matt S Trout
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 Directorhttp://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/

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


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

2008-02-05 Thread Jochen Luig

Matt S Trout schrieb:

Don't delete the Makefile.PL
  

Wow, that was easy. Thanks!

Wouldn't have thought of that myself in hours of banging my head against 
the wall to come.


Jochen

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/