Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

it is cool to see a single buildout script deploy nginx, DB, deps, and app in one go, on any linux box.

Would anyone please link to a practical, working example of this? I want to use buildouts, but I learn from example, and there seem to be very few examples of how to deploy a production configuration. How do the pros do it? What are the gotchas? Is there a book I can buy? Will someone please put together a PDF explaining all this, so that I can throw money at you?

EDIT: Arg, that's exactly what I mean... https://github.com/elbart/nginx-buildout is an ok example just to learn the basics of buildout, but making it "production ready" (i.e. extending it to build postgres, etc) is left as an exercise for the reader. I was really hoping to find a production buildout example... (But thank you, rithi! I appreciate you took the time to dig that one up for me.)



I'm not sure I'd advocate using buildout for this, but as (you've probably seen) there are a few recipes for stuff like haproxy[ha], varnish[va], postgres[pg] and nginx[nx] available.

An example of how to combine many of these, for deploying a complex stack, could be:

http://www.martinaspeli.net/articles/an-uber-buildout-for-a-...

Another somewhat complex example:

https://github.com/kybi/buildout-openerp-postgres

You might also find this enlightening: http://glicksoftware.com/blog/using-haproxy-with-zope-via-bu...

[pg] https://github.com/securactive/sact.recipe.postgresql

[va] https://github.com/collective/plone.recipe.varnish

[ha] https://github.com/plone/plone.recipe.haproxy

[nx] https://github.com/collective/plone.recipe.varnish


https://github.com/elbart/nginx-buildout Extend to build postgres and other dependencies.


Ansible is made for this. From a fresh instance (or instances) with only ssh access to Postgres, Nginx, rabbitmq, redis, memcached, django app, etc. all configged and working.


You're probably better off looking into something like Ansible or Salt.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: