django nginx gunicorn,, start: Job failed to start -
every 1 trying deploying django project using nginx gunicorn,,but when run
sudo service gunicorn start, said, start: job failed start,
the gunicorn.conf file
/etc/init/gunicorn.conf
description "gunicorn application server handling myproject" start on runlevel [2345] stop on runlevel [!2345] respawn setuid user setgid www-data chdir /home/parallels/books/mysite exec myprojectenv/bin/gunicorn --workers 3 --bind unix:/home/parallels/books/mysite/mysite.sock mysite.wsgi:application
when run
gunicorn --bind 0.0.0.0:8000 mysite.wsgi:application
i can see mysite running
but when try
sudo service gunicorn start
fail,,, following instruction here
any 1 can reply thank much
i know late, in case:
- in gunicorn.conf see
setuid user
there userparallels
in prompt (it depends of bash settings, name of curent user). - there
chdir /home/parallels/books/mysite
,exec myprojectenv/bin/gunicorn
, guess gunicorn location not/home/parallels/books/mysite/myprojectenv/bin/gunicorn
. need use appropriate path run gunicorn.
check gunicorn log file find out problems. should here /var/log/upstart/gunicorn.log
Comments
Post a Comment