Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Dear Monks,

I made this small Catalyst app to send JSON data to some client. It is a very simple app and just has one controller (its just a test app, don't bite me for using just one controller!). I'm trying to deploy it on an Apache2 server with fastCGI. I referred this, this and this docs.

In my apache2.conf file, I appended the following:

<VirtualHost *:80> ServerName www.testjson.com DocumentRoot /home/code-ninja/Projects/Perl/testJSON <Directory /home/code-ninja/Projects/Perl/testJSON> Options +ExecCGI </Directory> <Files testjson_fastcgi.pl> SetHandler fastcgi-script </Files> </VirtualHost>

But I'm unable to deploy the app as I dreamed I would.

Also, I read that I can use the in-built server as a full-fledged server using Catalyst::Engine::HTTP::Prefork but I can't make it work. :-(

When I say CATALYST_ENGINE="HTTP::Prefork" myapp_server.pl it complains about missing HTTP::Prefork package. I tried installing it from CPAN but for some reason, it fails during the tests.

I'd be really grateful if some Monk would point me to a good guide elucidating the deployment process. I have configured Apache2 during my RHCE course I took a few years back so I know the jargons quite well. *noviceShowOffSmile*


In reply to Deploy Catalyst application. by code-ninja

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-03-28 21:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found