mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
All node stderr should go to the log files. Also fixing unread counts coffeescript.
This commit is contained in:
parent
74997ff554
commit
323792691b
9 changed files with 13 additions and 13 deletions
|
@ -4,8 +4,8 @@ directory=/srv/code/go/bin/
|
|||
user=sclay
|
||||
autostart=true
|
||||
autorestart=true
|
||||
#redirect_stderr=True
|
||||
redirect_stderr=True
|
||||
priority=991
|
||||
stopsignal=HUP
|
||||
stdout_logfile = /srv/newsblur/logs/imageproxy.log
|
||||
environment = IMAGEPROXY_CACHE="memory:200:4h",IMAGEPROXY_ADDR="localhost:4593",IMAGEPROXY_SIGNATUREKEY="@/etc/imageproxy.key",IMAGEPROXY_VERBOSE=1
|
||||
environment = IMAGEPROXY_CACHE="memory:200:4h",IMAGEPROXY_ADDR="localhost:4593",IMAGEPROXY_SIGNATUREKEY="@/etc/imageproxy.key",IMAGEPROXY_VERBOSE=1
|
||||
|
|
|
@ -4,7 +4,7 @@ directory=/srv/newsblur
|
|||
user=root
|
||||
autostart=true
|
||||
autorestart=true
|
||||
#redirect_stderr=True
|
||||
redirect_stderr=True
|
||||
priority=991
|
||||
stopsignal=HUP
|
||||
stdout_logfile = /var/log/mongodb/mms-agent.log
|
||||
|
|
|
@ -4,7 +4,7 @@ directory=/srv/newsblur
|
|||
user=sclay
|
||||
autostart=true
|
||||
autorestart=true
|
||||
#redirect_stderr=True
|
||||
redirect_stderr=True
|
||||
priority=991
|
||||
stopsignal=HUP
|
||||
stdout_logfile = /srv/newsblur/logs/favicons.log
|
||||
|
|
|
@ -5,7 +5,7 @@ environment=NODE_ENV=production
|
|||
user=sclay
|
||||
autostart=true
|
||||
autorestart=true
|
||||
#redirect_stderr=True
|
||||
redirect_stderr=True
|
||||
priority=991
|
||||
stopsignal=HUP
|
||||
stdout_logfile = /srv/newsblur/logs/original_page.log
|
||||
|
|
|
@ -5,7 +5,7 @@ environment=NODE_ENV=production
|
|||
user=sclay
|
||||
autostart=true
|
||||
autorestart=true
|
||||
#redirect_stderr=True
|
||||
redirect_stderr=True
|
||||
priority=991
|
||||
stopsignal=HUP
|
||||
stdout_logfile = /srv/newsblur/logs/original_text.log
|
||||
|
|
|
@ -5,7 +5,7 @@ environment=NODE_ENV=production
|
|||
user=sclay
|
||||
autostart=true
|
||||
autorestart=true
|
||||
#redirect_stderr=True
|
||||
redirect_stderr=True
|
||||
minfds = 10000
|
||||
priority=991
|
||||
stopsignal=HUP
|
||||
|
|
|
@ -4,8 +4,8 @@ directory=/srv/newsblur
|
|||
user=sclay
|
||||
autostart=true
|
||||
autorestart=true
|
||||
#redirect_stderr=True
|
||||
redirect_stderr=True
|
||||
priority=991
|
||||
stopsignal=HUP
|
||||
stdout_logfile = /srv/newsblur/logs/unread_counts.log
|
||||
environment = NODE_ENV=production,NODE_SSL=on
|
||||
environment = NODE_ENV=production,NODE_SSL=on
|
||||
|
|
|
@ -54,7 +54,7 @@ io.on 'connection', (socket) ->
|
|||
ip = socket.handshake.headers['X-Forwarded-For'] || socket.handshake.address
|
||||
|
||||
socket.on 'subscribe:feeds', (@feeds, @username) ->
|
||||
log.info @username, "Connecting (#{feeds.length} feeds, #{ip})," +
|
||||
log.info @username, "Connecting (#{@feeds.length} feeds, #{ip})," +
|
||||
" (#{io.engine.clientsCount} connected) " +
|
||||
" #{if SECURE then "(SSL)" else "(non-SSL)"}"
|
||||
|
||||
|
|
|
@ -67,11 +67,11 @@
|
|||
io.on('connection', function(socket) {
|
||||
var ip;
|
||||
ip = socket.handshake.headers['X-Forwarded-For'] || socket.handshake.address;
|
||||
socket.on('subscribe:feeds', function(feeds1, username) {
|
||||
socket.on('subscribe:feeds', function(feeds, username) {
|
||||
var ref;
|
||||
this.feeds = feeds1;
|
||||
this.feeds = feeds;
|
||||
this.username = username;
|
||||
log.info(this.username, `Connecting (${feeds.length} feeds, ${ip}),` + ` (${io.engine.clientsCount} connected) ` + ` ${SECURE ? "(SSL)" : "(non-SSL)"}`);
|
||||
log.info(this.username, `Connecting (${this.feeds.length} feeds, ${ip}),` + ` (${io.engine.clientsCount} connected) ` + ` ${SECURE ? "(SSL)" : "(non-SSL)"}`);
|
||||
if (!this.username) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue