|
Hi all, Trying to set up nginx + django and followed the descriptions here: http://forum.webfaction.com/viewtopic.php?id=1981 everything works fine Everything works fine as long as I run django like this: python2.7 manage.py runfcgi maxchildren=1 maxspare=1 minspare=1 method=prefork socket=$PWD/django.sock pidfile=django.pid daemonize=false But when I try running it in the background, like this: python2.7 manage.py runfcgi maxchildren=1 maxspare=1 minspare=1 method=prefork socket=$PWD/django.sock pidfile=django.pid daemonize=true > /dev/null 2>&1 & it just quits. Can't see any error messages anywhere, it's not there in the processes, it's definitely not running. Am I not allowed to do this via ssh? Should it be done somehow from the console? Any help, suggestion appreciated! Thanks, Balint |
|
You could try redirecting the output of that command to some file by running something like:
This should record the entire output, along with any error messages to $HOME/django_fcgi.log. You can check the contents of that file for clues about why "daemonize=true" is crashing. Thanks for your reply. The log file gets created but remains empty. :( Hm this is weird, even if I do something obviously wrong (like maxspare < minspare) I don't get anything in the log. If I do that with daemonize=false I see the relevant error. Could youplease try dropping the last "&" off the command you are running? It should not be needed with daemonize=true. |
|
Guuuys! Got it working now!! :) It was the "pidfile=django.pid". Need to use an absolute path here as well (Daaaa...) Thanks for your time and the responses! Balint |