Adding production log settings.

This commit is contained in:
Samuel Clay 2010-08-22 18:49:01 -04:00
parent a3025a2df7
commit 37a5476cd5
2 changed files with 4 additions and 0 deletions

View file

@ -7,4 +7,6 @@ def numCPUs():
bind = "127.0.0.1:8000"
pidfile = "/tmp/gunicorn_newsblur.pid"
logfile = "/home/conesus/newsblur/logs/production.log"
loglevel = "debug"
workers = numCPUs() #* 2 + 1

View file

@ -1,3 +1,5 @@
#!/bin/sh
#ps aux | grep 8080 | egrep -v 'grep' | awk '{print $2}' | xargs kill; ./manage.py runfcgi method=threaded host=127.0.0.1 port=8080
sudo /etc/init.d/gunicorn restart
echo '----\n'
tail -f /home/conesus/newsblur/logs/newsblur.log