Re: Running application using cherryd

Cherrypy-noob <[email protected]> Mon, 27 Mar 2017 01:23:12 -0700 (PDT)
Newsgroups gmane.comp.python.cherrypy
Message-ID <[email protected]>
Hi Michiel,

you got me there. I don't know. Whatever is default unless you specific 
differently in your app:

cherrypy.config.update({'environment' : 'production'}))

As far as I understood it, environment only changes some defaults for the 
config like no traceback on webpage in production. Setting it in the app is 
not ideal but the app/script could read in the config file and have it as a 
input parameter so you can define the config by config file and not within 
the app (makes more sense).

Another option is to use cherryd and then set that to autostart on boot 
with systemd or other tool. For systemd you for sure need to adjust 
settings (type=forking) and maybe more and adjust your script (quickstart 
won't work).





On Monday, March 20, 2017 at 5:34:03 PM UTC+1, Michiel Overtoom wrote:
>
> Hi Joos, 
>
> > On 2017-03-20, at 13:00, Cherrypy-noob <[email protected] <javascript:>> 
> wrote: 
> > 
> > After a lot of trial and error and some research I came to following 
> most simple solution. [...] 
>
> Thanks for sharing. 
>
> If you configure your webapp this way, is it run using test-develop or 
> production environment settings? 
>
> Greetings,

-- 
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.