News for hackers. Stuff that matters.
Re:Why I hate virtualenv and pip by sillysaurus2 on Friday December 06, 2013 @02:01AM (#6859836)
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.)

Re:Why I hate virtualenv and pip by e12e on Friday December 06, 2013 @04:25AM (#6860244)
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

Re:Why I hate virtualenv and pip by rithi on Friday December 06, 2013 @03:03AM (#6860003)
https://github.com/elbart/nginx-buildout Extend to build postgres and other dependencies.
Re:Why I hate virtualenv and pip by damon_c on Friday December 06, 2013 @08:48AM (#6860982)
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.
Re:Why I hate virtualenv and pip by veeti on Friday December 06, 2013 @05:05AM (#6860349)
You're probably better off looking into something like Ansible or Salt.