code-ninja has asked for the wisdom of the Perl Monks concerning the following question:
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*
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Deploy Catalyst application.
by Khen1950fx (Canon) on Nov 02, 2013 at 06:44 UTC | |
by stonecolddevin (Parson) on Nov 04, 2013 at 18:38 UTC | |
by code-ninja (Scribe) on Nov 02, 2013 at 07:19 UTC | |
by Khen1950fx (Canon) on Nov 02, 2013 at 10:05 UTC | |
by Anonymous Monk on Nov 02, 2013 at 07:51 UTC | |
Re: Deploy Catalyst application.
by keszler (Priest) on Nov 02, 2013 at 16:32 UTC | |
Re: Deploy Catalyst application.
by stonecolddevin (Parson) on Nov 04, 2013 at 18:40 UTC |