[Catalyst] Requirement for Makfile.PL or Build.PL in "home"?

Matt S Trout dbix-class at trout.me.uk
Mon May 28 22:41:31 GMT 2007


On Mon, May 28, 2007 at 02:00:13PM -0700, Jeff Chimene wrote:
> Matt S Trout wrote:
> > On Mon, May 28, 2007 at 12:11:54PM -0700, Jeff Chimene wrote:
> >   
> >> In Catalyst::Utils::home
> >> is the following requirement documented anywhere?
> >> # only return the dir if it has a Makefile.PL or Build.PL
> >> if (-f $home->file("Makefile.PL") or -f $home->file("Build.PL"))
> >>     
> >
> > It's only required if you haven't installed the app - it's how Catalyst tells
> > you're still running out of a development directory.
> >
> >   
> What does "installed the app..." mean?

perl Makefile.PL; make install
 
> The use case is that I copied all files in the HOME & descendants (but
> Makefile.PL and Build.PL) to the production machine. Two hours later, I
> figured out why the app wouldn't start. Hence this topic.

How do you verify your production machine has any new dependencies without
Makefile.PL ?

> P.S. I originally sent this app to the server via Makefile.PL
> constructing a tarball. The disadvantage is that this is a crappy way to
> send .PATCH files; which process is how I'd like to move from
> development to production in this Brave New World after the initial
> deployment. Of course, it turns out that the production machine doesn't
> have /usr/bin/patch, but that's another issue.

That's a really, spectacularly bad idea since it means your deployment process
isn't repeatable, which makes it a crappy deployment process :)

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director    Want a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/             http://www.shadowcatsystems.co.uk/ 



More information about the Catalyst mailing list