> Hi.
> I'm going to deploy a few (8-12) Django projects on my VDS with Ubuntu
> 12.04 and nginx. And I wonder how should configuration look like, to be
> explicit, simple and easy-to-understand for others (it will be maintained
> by another dude).
> Should I use emperor-mode for such a small amount of sites? Should I add
> web specific-user, or it could be run as www-data (this is it's usecase,
> right?) and in /var/www? Should I use single uWSGI-instance from sudo
> apt-get install uwsgi or pip install for every project? Anyone use some
> sort of django
> conventions<
http://blog.zacharyvoase.com/2010/02/03/django-project-conventions/>may
> be?
> One more my wish is the easy-to-deployment (and easy-to update) sequence,
> because I planning to write a script for automatic deployment and apply it
> for my other servers, which would have the same anount of sites. In near
> future.
>
I suggest yout to always use the emperor.
Choose a directory for your app config files (like /etc/uwsgi/apps), and
put a config file for each uWSGI instance. Fill each config file with
comment for each directive (the other dude will thank you for that).
Use a different uid for each app (if you can)
Regarding application directory or virtualenv usage i have no particular
suggestion, for me it is a matter of taste.
What i very-strongly suggest you is NOT USING virtualhosting mode. I know
it is funny but it is very complex to manage and secure.
Finally give a look at --idle,--cheap and --cheaper options, they could
help you in maintaining resources low.
--
Roberto De Ioris
http://unbit.it