Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Deploying a PSGI app in Apache without restarting (again)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mikolaj Kucharski  
View profile  
 More options Oct 29 2011, 4:43 pm
From: Mikolaj Kucharski <miko...@kucharski.name>
Date: Sat, 29 Oct 2011 21:43:00 +0100
Subject: Re: Deploying a PSGI app in Apache without restarting (again)

On Sat, Oct 29, 2011 at 12:16:49PM -0700, Tatsuhiko Miyagawa wrote:
> On Sat, Oct 29, 2011 at 5:25 AM, Mikolaj Kucharski
> <miko...@kucharski.name> wrote:
> > Hi,

> > I know this question was asked before here:

> > http://stackoverflow.com/questions/6124010/how-do-you-deploy-a-psgi-s...

> > but I would like to understand where exactly is the output cached?

> Output is not cached. The *application* is compiled and cached, for performance.

> > I read Plack::Handler::Apache1 and Plack::Util, but I don't see any
> > caching mechanism there, maybe I'm missing something.

> https://metacpan.org/source/MIYAGAWA/Plack-0.9984/lib/Plack/Handler/A...
> There's "||=" operator, caching the application.

> > - Is it cached on Apache level, or in Plack/PSGI?

> > - Is the behaviour described at above StackOverflow link specific to
> > Apache and would behave differently with other HTTP server?

> Yes, but most Plack handlers and PSGI servers compile the PSGI code
> and runs it in a persistent environment. The only exceptions are CGI
> handler and Shotgun loader, which recompiles the application every
> time a request comes in.

Thanks for the anwsers. Much appreciated.

I'm learning, I'm a noob. In the past working with CGI, I could throw
bunch of testing scripts under a directory tree, modify them at any time
and see what happens after refreshing a page in a browser, without any
need to restart http server every time a change a character in a file.

So far no matter what I try to (re)create above scenario in PSGI
environment I hit a bug (some call it a ``feature'') which doesn't allow
me just work on the code and forget what server I'm running, and what
PSGI is all about.

Can anyone recommend me a solution for my need? I thought PSGIBin will
solve my problem, but so far it's not the case..

--
best regards
q#


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.