dundeemt | 23 Nov 15:04

scaffold/cpdeploy.py - cherryd - DeployTemplate


I've been away from CP for almost 8 months now and I am trying to get
back up to speed on the new changes.  Previously I was using the
DeployTemplate so I could develop locally and then publish to CP
running under Apache via mod_python.  At that time Robert said he had
been use scaffold for sometime.

scaffold had a cpdeploy.py script that he used extensively.  However,
I see that cpdeploy.py has gone away although the scaffold directory
remains.  It would appear that cherryd has taken over for scaffold/
cpdeploy.py and the .conf files in scaffold are still viable for use
with cherryd.  -- So is the statement, scaffold/cpdeploy.py been
replaced with cherryd, correct?

Following on from there, it appears that the DeployTemplate has not
kept up with CP 3.1 since it uses the quickstart method which has been
deprecated and should be using the start method. (see following)
(http://www.cherrypy.org/wiki/DeployTemplate)
  _cpserver.py:67: DeprecationWarning: quickstart does nothing now and
will be removed in 3.2. Call cherrypy.engine.start() instead.

Also, using DeployTemplate, I can't get it to respond to Ctrl+C

What I am looking for is a Template I can use to run a CP application
under
  * standalone CP (for development)
  * under mod_python (for production)
  * under mod_wsgi (for production)
from the same CP application.

(Continue reading)

Pete H | 24 Nov 10:32

Re: scaffold/cpdeploy.py - cherryd - DeployTemplate


dundeemt wrote:
> I've been away from CP for almost 8 months now and I am trying to get
> back up to speed on the new changes.  Previously I was using the
> DeployTemplate so I could develop locally and then publish to CP
> running under Apache via mod_python.  At that time Robert said he had
> been use scaffold for sometime.
>
> scaffold had a cpdeploy.py script that he used extensively.  However,
> I see that cpdeploy.py has gone away although the scaffold directory
> remains.  It would appear that cherryd has taken over for scaffold/
> cpdeploy.py and the .conf files in scaffold are still viable for use
> with cherryd.  -- So is the statement, scaffold/cpdeploy.py been
> replaced with cherryd, correct?
>
> Following on from there, it appears that the DeployTemplate has not
> kept up with CP 3.1 since it uses the quickstart method which has been
> deprecated and should be using the start method. (see following)
> (http://www.cherrypy.org/wiki/DeployTemplate)
>   _cpserver.py:67: DeprecationWarning: quickstart does nothing now and
> will be removed in 3.2. Call cherrypy.engine.start() instead.
>
> Also, using DeployTemplate, I can't get it to respond to Ctrl+C
>
>
> What I am looking for is a Template I can use to run a CP application
> under
>   * standalone CP (for development)
>   * under mod_python (for production)
>   * under mod_wsgi (for production)
(Continue reading)

dundeemt | 24 Nov 15:26

Re: scaffold/cpdeploy.py - cherryd - DeployTemplate


On Nov 24, 3:32 am, Pete H <pe...@...> wrote:
> dundeemt wrote:
> > I've been away from CP for almost 8 months now and I am trying to get
> > back up to speed on the new changes.  Previously I was using the
> > DeployTemplate so I could develop locally and then publish to CP
> > running under Apache via mod_python.  At that time Robert said he had
> > been use scaffold for sometime.
>
> > scaffold had a cpdeploy.py script that he used extensively.  However,
> > I see that cpdeploy.py has gone away although the scaffold directory
> > remains.  It would appear that cherryd has taken over for scaffold/
> > cpdeploy.py and the .conf files in scaffold are still viable for use
> > with cherryd.  -- So is the statement, scaffold/cpdeploy.py been
> > replaced with cherryd, correct?
>
> > Following on from there, it appears that the DeployTemplate has not
> > kept up with CP 3.1 since it uses the quickstart method which has been
> > deprecated and should be using the start method. (see following)
> > (http://www.cherrypy.org/wiki/DeployTemplate)
> >   _cpserver.py:67: DeprecationWarning: quickstart does nothing now and
> > will be removed in 3.2. Call cherrypy.engine.start() instead.
>
> > Also, using DeployTemplate, I can't get it to respond to Ctrl+C
>
> > What I am looking for is a Template I can use to run a CP application
> > under
> >   * standalone CP (for development)
> >   * under mod_python (for production)
> >   * under mod_wsgi (for production)
(Continue reading)

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