Monday, May 23, 2011

Re: How do you organize your deployment enviroment

I'd heartily recommend chef - chef.opscode.com

Large library of scripts for almost any package or tool you're likely to want, scales out to lots of nodes but can be run in a simple solo mode for small deployments. Only downside is it's ruby but mostly you use the configuration language so not really a problem. 

I use Chef plus fabric to automate deployments of hundreds of nodes. 

Malcolm

Sent from my iPhone, please excuse any typos

On 23 May 2011, at 08:00, DK <cypreess@gmail.com> wrote:

Hi,

I am having a django project that  is being frequently deployed on clean linux installation. After a few deployments I have noticed that this process is very time consuming for me (every time I am preparing run scripts for everything, configuring cronjobs, paths to log files, etc) but this could be easily automated.

What are a ready solutions to manage such deployments?

My typical workflow is:
1) install packages on debian/ubuntu via aptitude (like database, etc)
2) creating new virtualenv + getting pip
3) pip install -r requirements (to setup enviroment)
4) fetch django project from code repository
5) setup runtime dir (I keep there: run - for pid files, logs, conf - for some config variables or scritps, scripts - some starting srcipts)
6) setup crontab jobs 
7) setup webserver + django wsgi to be started 


Sure - I can write some custom made installer for that, but wondering if there is some generic tool for such things.

PS. I have heard about fabric, but didn't investigate this tool yet. 



--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment