- Where do I put which files from the app?

I believe your modules are installed in the lib directory. Move them to a location that is accessible by your Perl installation. You will probably want to relocate your templates as well and reconfigure your View with the new location.

You'll also need to update your application class to tell it to use the Apache engine:
use Catalyst qw/-Engine=Apache/;


- How do I tell Apache to map urls to Catalyst?

I believe the Catalyst dispatcher handles this for you.

Here's a basic example of a Vhost configuration:
<VirtualHost _default_:8000> ServerAdmin webmaster@example.com ServerName catalyst.example.com ErrorLog logs/catalyst.example.com-error_log CustomLog logs/catalyst.example.com-access_log common PerlModule My::App <Location /> SetHandler perl-script PerlResponseHandler My::App </Location> </VirtualHost>

- My program needs to acess a shared drive. Will 'c:\path' still mean the same for my app when it runs under the Webserver?

I don't see any reason why this would be an issue.

You will need to install Catalyst::Engine::Apache2 if it isn't already.


In reply to Re: Move Catalyst web app from builtin testing server to Apache by shiza
in thread Move Catalyst web app from builtin testing server to Apache by holli

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.