On 20/05/2009, at 11:28 PM, Chris Withers wrote:
> > As a total newbie to Pylons I thought I'd ask some questions about > deployment: > > - which bits of a Pylons project do you version control? * The whole package source that paster creates, minus any autogen fluff like .egg-info dir. > > - how do you build all the other bits? * My preference is to run a private pypi-like package repository within the environment. We configure the project package dependencies correctly (setuptools-style) and host any private packages, including the pylons project, in the private repository. For deployment we can then just configure .pydistutils.cfg to point to our local package repository and use easy_install. Local packages are fetched from the local repository, the rest (like Pylons, etc) from PYPI. > > - what do people use to serve their sites? Is whatever > "paster serve blah.ini" using suitable for serving to the wide world > or does it need to be proxied through something like Apache? I prefer serving Pylons apps using Apache/mod_wsgi, usually in daemon mode. Works nicely, service configuration is centralised and avoids all the hassles around starting up & shutting down separate applications. If mod_wsgi isn't available or isn't working for some reason, the next preference is paster serve behind Apache/mod_proxy. > > - if using "paster serve", how do people wire it so that it starts at > machine startup and stops at machine shutdown? Depends on the system. On Solaris I use the very clever SMF. > > - is "paster serve" the recommended option? If not, what is? paster serve is a reasonable option. Like I said, mod_wsgi is preferred for me as it simplifies service control. Cheers, Chris Miles --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
