views:

72

answers:

0

So far, I have:

  1. I recompiled my nginx package with uwsgi ( 0.7.67 )
  2. Copied over my uwsgi to sbin via sudo cp uwsgi /usr/local/sbin
  3. Copied uwsgi params via sudo cp nginx/uwsgi_params /etc/nginx
  4. $ sudo mkdir -p /usr/local/nginx/uwsgi_temp
  5. Created a virtualhost in sites-available and symlinked in sites-available. File is:


server {
        listen 80; 
        server_name domain.org;

        access_log /www/domain.org/log/access.log;
        error_log /www/domain.org/log/error.log;

        upstream django {
            ip_hash;
            server unix:sock/uwsgi.sock;
        }

        location / { 
                uwsgi_pass django;
                include uwsgi_params;

        }

}

I'm confused at this point. The guides say I have to now go through an additional step of managing my uwsgi processes. One says to use supervisor, the other Upstart. Can someone advise me on which of these to use and why?

Additionally, if I have my project root at /srv/domain and my virtualenv ( which contains django and django modules, and is NOT project specific but shared ) at /srv/python-environments/django/, how can I complete this whole setup?