title: django-nginx-gunicorn - not working
body: <p>I'm trying to setup django with nginx and gunicorn by these tutorials <a href="http://senko.net/en/django-nginx-gunicorn/" rel="nofollow">http://senko.net/en/django-nginx-gunicorn/</a> and <a href="http://honza.ca/2011/05/deploying-django-with-nginx-and-gunicorn" rel="nofollow">http://honza.ca/2011/05/deploying-django-with-nginx-and-gunicorn</a></p>
  
  <p>Setup:</p>
  
  <pre><code>virtualenv --no-site-packages qlimp
  cd qlimp
  source bin/activate
  pip install gunicorn django
  django-admin.py startproject qlimp
  cd qlimp
  python manage.py runserver 0.0.0.0:8001
  </code></pre>
  
  <p>Gunicorn setup is same as here <a href="http://senko.net/en/django-nginx-gunicorn/" rel="nofollow">http://senko.net/en/django-nginx-gunicorn/</a></p>
  
  <p>changes made (run.sh):</p>
  
  <pre><code>LOGFILE=/var/log/gunicorn/qlimp.log
  USER=nirmal
  GROUP=nirmal
  cd /home/nirmal/qlimp/qlimp
  </code></pre>
  
  <p>Upstart is also the same as the tutorial in above link</p>
  
  <p>changes made:</p>
  
  <pre><code>exec /home/nirmal/qlimp/qlimp/run.sh
  </code></pre>
  
  <p>Nginx setup:</p>
  
  <pre><code>server {
      listen 80;
      server_name qlimp.com;
  
      access_log /home/nirmal/qlimp/log/access.log;
      error_log /home/nirmal/qlimp/log/error.log;
  
      location /static {
           root /home/nirmal/qlimp/qlimp;
      }
  
      location / {
          proxy_pass http://127.0.0.1:8888;
      }
  </code></pre>
  
  <p>}</p>
  
  <p>Then I restarted nginx and run the gunicorn server:</p>
  
  <pre><code>sudo /etc/init.d/nginx restart
  (qlimp) cd qlimp/qlimp
  (qlimp) gunicorn_django -D -c run.sh
  </code></pre>
  
  <p>When I run the gunicorn server, I'm getting this error:</p>
  
  <pre><code>Failed to read config file: run.sh
  Traceback (most recent call last):
  File "/home/nirmal/qlimp/local/lib/python2.7/site-packages/gunicorn/app/base.py", line  65, in load_config
  execfile(opts.config, cfg, cfg)
   File "run.sh", line 3
     LOGFILE=/var/log/gunicorn/qlimp.log
          ^
  SyntaxError: invalid syntax
  </code></pre>
  
  <p>Could anyone guide me? Thanks!</p>