mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Merge branch 'master' of github.com:samuelclay/NewsBlur into social
* 'master' of github.com:samuelclay/NewsBlur: Fixing username logging for unread counts. Reducing logging in unread counts node server.
This commit is contained in:
commit
6916aa179b
2 changed files with 16 additions and 2 deletions
|
@ -2,9 +2,15 @@ fs = require 'fs'
|
|||
io = require('socket.io').listen 8888
|
||||
redis = require 'redis'
|
||||
|
||||
REDIS_SERVER = if process.env.NODE_ENV == 'dev' then 'localhost' else 'db01'
|
||||
REDIS_SERVER = if process.env.NODE_ENV == 'development' then 'localhost' else 'db01'
|
||||
client = redis.createClient 6379, REDIS_SERVER
|
||||
|
||||
io.configure 'production', ->
|
||||
io.set 'log level', 1
|
||||
|
||||
io.configure 'development', ->
|
||||
io.set 'log level', 2
|
||||
|
||||
io.sockets.on 'connection', (socket) ->
|
||||
socket.on 'subscribe:feeds', (@feeds, @username) ->
|
||||
console.log " ---> [#{@username}] Subscribing to #{feeds.length} feeds " +
|
||||
|
|
|
@ -7,10 +7,18 @@
|
|||
|
||||
redis = require('redis');
|
||||
|
||||
REDIS_SERVER = process.env.NODE_ENV === 'dev' ? 'localhost' : 'db01';
|
||||
REDIS_SERVER = process.env.NODE_ENV === 'development' ? 'localhost' : 'db01';
|
||||
|
||||
client = redis.createClient(6379, REDIS_SERVER);
|
||||
|
||||
io.configure('production', function() {
|
||||
return io.set('log level', 1);
|
||||
});
|
||||
|
||||
io.configure('development', function() {
|
||||
return io.set('log level', 2);
|
||||
});
|
||||
|
||||
io.sockets.on('connection', function(socket) {
|
||||
socket.on('subscribe:feeds', function(feeds, username) {
|
||||
var _ref,
|
||||
|
|
Loading…
Add table
Reference in a new issue