Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Is Plack ready for production?

by roubi (Hermit)
on Sep 28, 2011 at 00:58 UTC ( #928214=note: print w/ replies, xml ) Need Help??


in reply to Is Plack ready for production?

I use mod_fcgid with a Plack app and it just works (and it works better than mod_fastcgi may I add, for whatever reason). You seem to be having an Apache configuration issue rather than a Plack issue here though?

I'll admit it took me a little while to get my setup working, mostly having to do with understanding what path to put in a Rewrite rule location in a .htaccess file and nothing to do with Plack itself.

What doc are you using? I started with the Dancer deployment perldoc and adapted from there: http://search.cpan.org/~xsawyerx/Dancer-1.3072/lib/Dancer/Deployment.pod. A quick Google search showed that similar documents exist for Catalyst and Mojolicious.


Comment on Re: Is Plack ready for production?
Re^2: Is Plack ready for production?
by sundialsvc4 (Abbot) on Sep 28, 2011 at 13:02 UTC

    Roubi, do you happen to be using mod_fcgid to run what mod_fastcgi would call a static server?   (In other words, the URL does not point to a filename; Apache (maybe) starts the server(s) when Apache is initialized.)

    I had serious troubles figuring out if mod_fcgid could do that, to the point that I wound up compiling mod_fastcgi from source for a Linux box that didn’t supply it by default.   (It’s very obvious from the docs how mod_fastcgi supports that mode.   But it’s not at all obvious to me how/if mod_fcgid does, although for this mode to be unsupported seems quite “no, this just can’t be.”)

    A snippet of the necessary config-file voodoo would be quite useful to me, if you did get it to work that way.

      I am pretty sure my setup is closer to what mod_fastcgi calls "dynamic". Apache is in charge of starting and stopping the application instances based on load, and won't do so until the first hit to the app.
      In practical terms though, the monitoring scheme we've got here should ensure that the "dynamic" app is always up and so I haven't looked at a more static-ish setup. If you do find out how to do this with mod_fcgid I'd be interested to hear about it.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://928214]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (13)
As of 2014-09-23 17:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (234 votes), past polls