Re: [python-uk] Suggestions / best practices for deployment

2013-05-20 Thread MikedePlume
On Sat, 2013-05-18 at 17:41 +0100, Andy Robinson wrote: > Daniel, who are you disagreeing with? Everyone here agrees on > automation, I think. > > - Andy As a small user (one or two servers, one or two packages to deploy): I started by doing a lot of typing of commands, got bored with that, mo

Re: [python-uk] Suggestions / best practices for deployment

2013-05-20 Thread Daniel Pope
It doesn't need to be SSH-based, there are orchestration systems that are RPC or pubsub based (eg. Jenkins, MCollective). As per the line between provisioning and deployment I've argued in the past that provisioning should be for state that spans many minor releases of an application. I also belie

Re: [python-uk] Suggestions / best practices for deployment

2013-05-20 Thread Harry Percival
Interesting points both. I think it's insightful to think about the line beween provisioning and deployment... The idea that deployment shouldn't require root permissions is a good stake in the ground. In the book I've decided I'm going to take people through spinning up a server with Apache, and

Re: [python-uk] Suggestions / best practices for deployment

2013-05-20 Thread David Reynolds
On 20 May 2013, at 14:51, Harry Percival wrote: > Also, question for django people: static files, as collected by "manage.py > collectstatic": in the repo, or not? Not. That is a deployment step in my book. -- David Reynolds da...@reynoldsfamily.org.uk

Re: [python-uk] Suggestions / best practices for deployment

2013-05-20 Thread Michael Foord
On 20 May 2013, at 15:00, David Reynolds wrote: > > On 20 May 2013, at 14:51, Harry Percival wrote: > >> Also, question for django people: static files, as collected by "manage.py >> collectstatic": in the repo, or not? > > Not. That is a deployment step in my book. > > Agreed. Many ap

Re: [python-uk] Suggestions / best practices for deployment

2013-05-20 Thread Tim Diggins
On 20 May 2013 14:51, Harry Percival wrote: > Interesting points both. I think it's insightful to think about the line > beween provisioning and deployment... The idea that deployment shouldn't > require root permissions is a good stake in the ground. > > In the book I've decided I'm going to ta

Re: [python-uk] Suggestions / best practices for deployment

2013-05-20 Thread MikedePlume
On Mon, 2013-05-20 at 14:51 +0100, Harry Percival wrote: > Interesting points both. I think it's insightful to think about the > line beween provisioning and deployment... The idea that deployment > shouldn't require root permissions is a good stake in the ground. > > > In the book I've decided

Re: [python-uk] Suggestions / best practices for deployment

2013-05-20 Thread Andy Robinson
On 20 May 2013 15:40, MikedePlume wrote: > Interesting that the subject veers towards system design. I use FCGI > myself and the restart can be entirely non-root. Provisioning then > includes adding the FCGI reference into the server config. > I'm glad we're not the only ones. We have been ver

Re: [python-uk] Suggestions / best practices for deployment

2013-05-20 Thread Andy Robinson
On 20 May 2013 14:51, Harry Percival wrote: > Also, question for django people: static files, as collected by "manage.py > collectstatic": in the repo, or not? No. It's a deployment step. It's REALLY useful to have a small set of "functional tests" which can be run in a live web app. For exa

[python-uk] Python/Django DevOps community and resources

2013-05-20 Thread Daniele Procida
Hi folks. I've just got back from the most astounding DjangoCon Europe in Warsaw, where several of decided that the DevOps in the community needed more mutual support. So, we've set up #django-devops on irc.freenode.net, and for an email list. Do

Re: [python-uk] Python/Django DevOps community and resources

2013-05-20 Thread Jon Gould
While we're talking groups and meetups, I'm looking at dates to arrange the next DJUGL. DJUGL is the Django User Group London which is a social meetup consisting of Beer, Pizza and Tech Talks Are there any conflicting London tech nights on the 11th or 18th June? Regards Jon Gould | Team Leade

Re: [python-uk] Suggestions / best practices for deployment

2013-05-20 Thread Peter Inglesby
> > It's REALLY useful to have a small set of "functional tests" which can > be run in a live web app. For example, for an online purchase > process, you might have a selenium test which steps right through a > purchase using a known "only for tests" account or credit card number. > And it's an a

Re: [python-uk] CI and deployment (was Re: Suggestions / best practices for deployment)

2013-05-20 Thread John Lee
On Sat, 18 May 2013, Antonio Cavallo wrote: I don't know any scenario like that: usually dependencies are frozen (and tested) separately in a "release". It makes the whole process simpler. I guess you missed this part? [john wrote:] (even though production is pinned to old releases, you pro

Re: [python-uk] Suggestions / best practices for deployment

2013-05-20 Thread John Lee
On Mon, 20 May 2013, MikedePlume wrote: I must say, I'd love to see something about testing bash scripts, and, Something like this: child = subprocess.Popen(["find", deploy_root, "-name", "*.sh"]) out, err = child.communicate() bad = out.splitlines() self.assertEqual(len(bad), 0) ;-) John

Re: [python-uk] Suggestions / best practices for deployment

2013-05-20 Thread John Lee
On Mon, 20 May 2013, Andy Robinson wrote: be run in a live web app. For example, for an online purchase process, you might have a selenium test which steps right through a purchase using a known "only for tests" account or credit card number. [...] I don't know what this kind of testing is ca