Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users

root dir location

 

 

Catalyst users RSS feed   Index | Next | Previous | View Threaded


ben-catalyst at vinnerd

Jun 17, 2009, 5:51 AM

Post #1 of 4 (745 views)
Permalink
root dir location

Where should the root dir (for templates) be? I thought it was at the
same level as lib, script, and t.

I'm finding that when i create a view with:

myapp_create.pl view MyView TT

...the INCLUDE_PATH isn't setup, and i have to manually add:

INCLUDE_PATH => Myapp->path_to(qw/.. .. root/),



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


bobtfish at bobtfish

Jun 18, 2009, 12:51 AM

Post #2 of 4 (708 views)
Permalink
Re: root dir location [In reply to]

On 17 Jun 2009, at 13:51, Ben Vinnerd wrote:

> Where should the root dir (for templates) be? I thought it was at
> the same level as lib, script, and t.
>
> <snip>
> ...the INCLUDE_PATH isn't setup, and i have to manually add:

At a guess, you deleted your Makefile.PL?

Cheers
t0m


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


ben-catalyst at vinnerd

Jun 18, 2009, 1:12 AM

Post #3 of 4 (701 views)
Permalink
Re: root dir location [In reply to]

On 18/06/09 08:51, Tomas Doran wrote:
> At a guess, you deleted your Makefile.PL?
>

Yes :O

I didn't really want to bother with make on my webapp, so deleted that
along with Changes and README.

Cheers t0m,

Ben


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


bobtfish at bobtfish

Jun 18, 2009, 2:16 AM

Post #4 of 4 (691 views)
Permalink
Re: root dir location [In reply to]

Ben Vinnerd wrote:
> On 18/06/09 08:51, Tomas Doran wrote:
>> At a guess, you deleted your Makefile.PL?
>>
>
> Yes :O
>
> I didn't really want to bother with make on my webapp, so deleted that
> along with Changes and README.

Yeah, that'd get you.

The lines in the generated Makefile.PL which say:

# IMPORTANT: if you delete this file your app will not work as
# expected. You have been warned.

Are, actually, not lies.

Catalyst uses the presence of a Makefile.PL to work out if your
application has actually been installed, or if it is just running from a
checkout.

I totally see the 'I will never install' point of make being unneeded,
but I personally like the possibility that I may one day run my apps
somewhere other than my laptop (or, maybe I'll even buy a less crappy
laptop). So keeping the dependencies in Makefile.PL up to date is a very
worthwhile exercise; you can then just copy your app to another machine
and say 'make installdeps', rather than suffer half an hour's
frustration trying to start your app and failing.

Cheers
t0m



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

Catalyst users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.