I use Green Unicorn with Supervisord to do the actual process starting and monitoring. Absolutely the best, most reliable, easy-to-deploy situation.
My advice is to stay away from Apache/mod_wsgi. I think it is a bloated, tricky-to-configure, opaque, hard-to-debug, and hard-to-maintain deployment system. Use Apache (if you must, Nginx or Lighttpd are miles better, easier-to-configure and lighter) for the proxy, and Green Unicorn to handle the workers. Seriously, as part of my Satchmo/Django consulting career, I've saved many a site with routine bizarre/idiosyncratic problems by the simple expedient of moving them off of mod_wsgi, or ... much worse, mod_python. -Bruce On Tue, Jan 25, 2011 at 8:32 AM, Stuart Laughlin <[email protected]>wrote: > I found this article particularly helpful: > > > http://brandonkonkle.com/blog/2010/jun/25/provisioning-new-ubuntu-server-django/ > > > --Stuart > > On Tue, Jan 25, 2011 at 10:27 AM, Alex Robbins > <[email protected]> wrote: > > I'd recommend gunicorn for what you are describing. The django dev > > server isn't meant to be used in production like you describe. > > > > http://gunicorn.org/ > > > > Basically, you'd setup the gunicorn process to start (or schedule it > > with something like supervisord), and then have something in front > > that proxies to it. I've been using nginx and it has been working > > really well. Much better stability than we had been seeing with > > mod_python, mod_wsgi or fastcgi. > > > > This is similar to what we do: > > > > > http://www.rkblog.rk.edu.pl/w/p/deploying-django-project-gunicorn-and-nginx/ > > > > except that we use supervisord to manage the gunicorn processes. > > > > Hope that helps, > > Alex > > > > On Tue, Jan 25, 2011 at 9:51 AM, Peter Halliday > > <[email protected]> wrote: > >> Is this for development? Because if this was for production I'd say you > >> shouldn't do that. Instead you should just run apache + mod_wsgi or > some > >> other deployment method. > >> > >> Peter Halliday > >> Excelsior Systems > >> (Phone:) 607-438-2527 x101 > >> (Fax:) 888-265-5082 > >> > >> > >> On Tue, Jan 25, 2011 at 10:50 AM, allan <[email protected]> wrote: > >>> > >>> Hello all, > >>> > >>> I'm in the process of deploying Satchmo on a Linux (CentOS) virtual > >>> machine. I'd like to install a daemon to start Satcho (e.g., "python > >>> manage.py runserver") on boot, manage starting and stopping it, and so > >>> on. The daemon will live in /etc/init.d/ and follow the protocols for > >>> daemons that live there. > >>> > >>> It looks like a routine job, but has anyone else written one so I > >>> won't need to do it myself? > >>> > >>> Thanks! > >>> > >>> -- > >>> You received this message because you are subscribed to the Google > Groups > >>> "Satchmo users" group. > >>> To post to this group, send email to [email protected]. > >>> To unsubscribe from this group, send email to > >>> [email protected]<satchmo-users%[email protected]> > . > >>> For more options, visit this group at > >>> http://groups.google.com/group/satchmo-users?hl=en. > >>> > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "Satchmo users" group. > >> To post to this group, send email to [email protected]. > >> To unsubscribe from this group, send email to > >> [email protected]<satchmo-users%[email protected]> > . > >> For more options, visit this group at > >> http://groups.google.com/group/satchmo-users?hl=en. > >> > > > > -- > > You received this message because you are subscribed to the Google Groups > "Satchmo users" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > [email protected]<satchmo-users%[email protected]> > . > > For more options, visit this group at > http://groups.google.com/group/satchmo-users?hl=en. > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Satchmo users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<satchmo-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/satchmo-users?hl=en. > > -- Bruce Kroeze http://www.ecomsmith.com It's time to hammer your site into shape. -- You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.
