<!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.&nbsp; 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.&nbsp; It doesn't look like they get picked up in the make process.<BR>
<BR>
I currently have them in the /opt/myserver directory.&nbsp; 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>
&gt; I've written my first Catalyst app.&nbsp; Up until this point, I've been<BR>
&gt; using the Catalyst development server, but now I'm working on<BR>
&gt; deploying the application on my webserver using apache and FastCGI.<BR>
&gt;<BR>
&gt; The problem is, now that I have the app deployed, Catalyst can't seem<BR>
&gt; to find my template files.&nbsp; These templates were found with no problem<BR>
&gt; in the development environment.&nbsp; Here's the error I'm getting:<BR>
&gt; [error] Couldn't render template &quot;file error - comments/report.tt: not<BR>
&gt; found&quot;<BR>
&gt;<BR>
&gt; And here's my apache configuration:<BR>
&gt; LoadModule fastcgi_module modules/mod_fastcgi.so<BR>
&gt; FastCgiExternalServer /opt/myapp/myapp_fastcgi.pl -host 127.0.0.1:3001<BR>
&gt; &lt;VirtualHost 64.22.79.211:80&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; ServerName blog-admin.myserver.com<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; Alias /static /opt/myapp/root/static<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; Alias / /opt/myapp/myapp_fastcgi.pl/<BR>
&gt; &lt;/VirtualHost&gt;<BR>
&gt;<BR>
&gt; (I have the template files in the /opt/myapp/root/static/templates<BR>
&gt; directory.)<BR>
&gt;<BR>
&gt; And the command I used to start the FastCGI server:<BR>
&gt; ./myapp_fastcgi.pl -e -l 127.0.0.1:3001 -p /tmp/myapp.pid<BR>
&gt;<BR>
&gt; I'm stumped.&nbsp; Does anyone see a problem with my configuration or<BR>
&gt; otherwise that might be keeping Catalyst from seeing my template files?<BR>
&gt;<BR>
&gt; Thanks,<BR>
&gt; Greg Coates<BR>
&gt;<BR>
&gt; _______________________________________________<BR>
&gt; List: Catalyst@lists.scsys.co.uk<BR>
&gt; 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>
&gt; Searchable archive:<BR>
&gt; <A HREF="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</A><BR>
&gt; Dev site: <A HREF="http://dev.catalyst.perl.org/">http://dev.catalyst.perl.org/</A><BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>