<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7653.38">
<TITLE>RE: [Catalyst] FastCGI Deployment problem - can't find templates</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Okay. I've done this.<BR>
<BR>
I did some more checking, and I realize that I'm not sure where the static files and templates should be installed on a production server. It doesn't look like they get picked up in the make process.<BR>
<BR>
I currently have them in the /opt/myserver directory. My application perl module files are in the standard site_perl location.<BR>
<BR>
Where should the templates, etc go?<BR>
<BR>
Thanks,<BR>
Greg<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Gerda Shank [<A HREF="mailto:gs364@cornell.edu">mailto:gs364@cornell.edu</A>]<BR>
Sent: Tue 9/23/2008 11:38 AM<BR>
To: Coates, Greg<BR>
Subject: Re: [Catalyst] FastCGI Deployment problem - can't find templates<BR>
<BR>
Greg:<BR>
<BR>
Your template files are not static files. They shouldn't be in the<BR>
static directory. A fairly standard configuration is to have a templates<BR>
directory right underneath root, at the same level as the static directory.<BR>
<BR>
You should probably move the templates directory one level up and adjust<BR>
the config for your TT view.<BR>
<BR>
Gerda<BR>
<BR>
<BR>
Greg Coates wrote:<BR>
> I've written my first Catalyst app. Up until this point, I've been<BR>
> using the Catalyst development server, but now I'm working on<BR>
> deploying the application on my webserver using apache and FastCGI.<BR>
><BR>
> The problem is, now that I have the app deployed, Catalyst can't seem<BR>
> to find my template files. These templates were found with no problem<BR>
> in the development environment. Here's the error I'm getting:<BR>
> [error] Couldn't render template "file error - comments/report.tt: not<BR>
> found"<BR>
><BR>
> And here's my apache configuration:<BR>
> LoadModule fastcgi_module modules/mod_fastcgi.so<BR>
> FastCgiExternalServer /opt/myapp/myapp_fastcgi.pl -host 127.0.0.1:3001<BR>
> <VirtualHost 64.22.79.211:80><BR>
> ServerName blog-admin.myserver.com<BR>
> Alias /static /opt/myapp/root/static<BR>
> Alias / /opt/myapp/myapp_fastcgi.pl/<BR>
> </VirtualHost><BR>
><BR>
> (I have the template files in the /opt/myapp/root/static/templates<BR>
> directory.)<BR>
><BR>
> And the command I used to start the FastCGI server:<BR>
> ./myapp_fastcgi.pl -e -l 127.0.0.1:3001 -p /tmp/myapp.pid<BR>
><BR>
> I'm stumped. Does anyone see a problem with my configuration or<BR>
> otherwise that might be keeping Catalyst from seeing my template files?<BR>
><BR>
> Thanks,<BR>
> Greg Coates<BR>
><BR>
> _______________________________________________<BR>
> List: Catalyst@lists.scsys.co.uk<BR>
> Listinfo: <A HREF="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</A><BR>
> Searchable archive:<BR>
> <A HREF="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</A><BR>
> Dev site: <A HREF="http://dev.catalyst.perl.org/">http://dev.catalyst.perl.org/</A><BR>
<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>