[python-uk] Suggestions / best practices for deployment

Tim Diggins tim at red56.co.uk
Wed May 15 12:28:57 CEST 2013


Hi Harry (and list)

First - I think you should separate out provisioning (setting up the server
and all the dependencies and maybe the initial install) from deployment
(repeatedly updating the site based on the latest codebase and db
migrations etc).

Secondly - my experience (which may not be very helpful). In the past, I've
used chef to provision configure a rackspace / amazon box, and have
customized recipes for python / virtualenv install. I then use a capistrano
to deploy the code changes for django . Very little customization is needed
for django (as opposed to rails) interestingly, because capistrano is
pretty well thought through. Nonetheless it's not a common practice in
django/python communities (cause cap was written for rails and is in ruby,
I imagine).

Would argue that the concept of best practice lite doesn't make sense! It
all depends on the constraints and what is the most pressing issue right
now. In the context of TDD + python, the best practice lite, might well be
(pace your introduction) to use PythonAnywhere or maybe GAE, mightn't it…
If you're teaching TDD +ruby, then I'd say best practice lite would be to
use heroku.

T

PS: planning to use PythonAnywhere to teach python to secondary school
kids, but I'll maybe contact you separately about that...



On 15 May 2013 10:57, Harry Percival <harry.percival at gmail.com> wrote:

> Dear UK Python chums,
>
> some of you probably know I'm writing a book about TDD for O'Reilly.  I'm
> looking for some help with the (first) chapter on deployment.
>
> http://www.obeythetestinggoat.com/what-to-say-about-deployment.html
>
> What do you use for deployment?  Do you have any kind of automated
> scripts? How do you manage virtualenvs, the database, apache/uwsgi
> config... What do you think might work as a sort of "best practice lite"
> for a simple site for beginners?  (django, sqlite database, static files)
>
> --
> ------------------------------
> Harry J.W. Percival
> ------------------------------
> Twitter: @hjwp
> Mobile:  +44 (0) 78877 02511
> Skype:         harry.percival
>
> _______________________________________________
> python-uk mailing list
> python-uk at python.org
> http://mail.python.org/mailman/listinfo/python-uk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-uk/attachments/20130515/e5f8c7fb/attachment.html>


More information about the python-uk mailing list