5 ms·
My friend who is a python guru uses buildout for all his apps. Some of the recipes I have seen go more into configuration-management-like stuff but it is cool
by ivan_ah 13y ago
My friend who is a python guru uses buildout for all his apps.
Some of the recipes I have seen go more into configuration-management-like stuff but it is cool to see a single buildout script deploy nginx, DB, deps, and app in one go, on any linux box.
- sillysaurus2 13y agoit 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 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.)
- rithi 13y agohttps://github.com/elbart/nginx-buildout https://github.com/elbart/nginx-buildout Extend to build postgres and other dependencies.
- e12e 13y agoI'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-production-plone-server http://www.martinaspeli.net/articles/an-uber-buildout-for-a-... Another somewhat complex example: https://github.com/kybi/buildout-openerp-postgres https://github.com/kybi/buildout-openerp-postgres You might also find this enlightening: http://glicksoftware.com/blog/using-haproxy-with-zope-via-buildout http://glicksoftware.com/blog/using-haproxy-with-zope-via-bu... [pg] https://github.com/securactive/sact.recipe.postgresql https://github.com/securactive/sact.recipe.postgresql [va] https://github.com/collective/plone.recipe.varnish https://github.com/collective/plone.recipe.varnish [ha] https://github.com/plone/plone.recipe.haproxy https://github.com/plone/plone.recipe.haproxy [nx] https://github.com/collective/plone.recipe.varnish https://github.com/collective/plone.recipe.varnish
- veeti 13y agoYou're probably better off looking into something like Ansible or Salt.
- damon_c 13y agoAnsible 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.