Pete H | 25 Nov 11:35

Re: scaffold/cpdeploy.py - cherryd - DeployTemplate


On Nov 24, 2:26 pm, dundeemt <dunde...@...> wrote:
> On Nov 24, 3:32 am, Pete H <pe...@...> wrote:
<snip>

>
> Pete,
> Thank you for your example.  I'm just starting to go over it now.  I
> am sure to learn much from it.
>
> Do you know if subscribing to 'start_thread'/'stop_thread' needs any
> modification over the different deployment scenarios?  I will be using
> mysql and I'd like to explicitly close down db connections before
> threads go away.http://tools.cherrypy.org/wiki/Databases

Not as far as I know, though it's only been live with cgi and
mod_wsgi. Obviously the threads issue doesn't arise with cgi.

I'm using the recipe in the wiki with the psycopg2 driver - seems to
be the only one that's current at the moment anyway. So far it 'just
works'.

I should add that so far my database is read-only - though when it
does become read/write I don't expect many concurrent connections
since the only write operations will be by the society secretary and
those members registering stock - and out of say 1000 members there
won't be many doing that at the same time.

In fact since mod_wsgi works so well (thanks Graham!) I can't really
envisage ever going back to mod_python since it's no good for me in a
(Continue reading)

v+python | 3 Dec 02:53
Favicon

Re: scaffold/cpdeploy.py - cherryd - DeployTemplate


On Nov 25, 2:35 am, Pete H <pe...@...> wrote:
> On Nov 24, 2:26 pm, dundeemt <dunde...@...> wrote:> On Nov 24,
3:32 am, Pete H <pe...@...> wrote:
>

> Not as far as I know, though it's only been live with cgi and
> mod_wsgi. Obviously the threads issue doesn't arise with cgi.

When you say "cgi" do you mean exactly that, or do you mean "fastcgi"?

I'm trying to figure out how to get CherryPy running on Bluehost,
using "fastcgi", and clearly there is something I'm doing wrong, all I
get are 500 errors.

I do have the environment working locally, with no Apache, but I'm not
clear on what I need to change to make it work using "fastcgi".
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users@...
To unsubscribe from this group, send email to cherrypy-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Gmane