Browse Source

nginx

master
zeus 4 years ago
parent
commit
c2bcb50646
  1. 24
      swarmlab-app/src/run/app.js

24
swarmlab-app/src/run/app.js

@ -477,14 +477,14 @@ function onCollection(err, collection) {
var user = resob1.res25creator var user = resob1.res25creator
console.log('datauser ' + JSON.stringify(user)); console.log('datauser ' + JSON.stringify(user));
console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>> '+JSON.stringify(reslog)); console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>> '+JSON.stringify(reslog));
//pubClient.get(issend, function(err, object) { pubClient.get(issend, function(err, object) {
//if(err == null){ if(err == null){
//pubClient.set(issend, itemsProcessed, function(err, res) { pubClient.set(issend, itemsProcessed, function(err, res) {
io.in(user).emit("logdata", reslog); io.in(user).emit("logdata", reslog);
//}); });
//} }
itemsProcessed++; itemsProcessed++;
//}); });
})() })()
}else{ }else{
pubClient.get(pathfileval, function(err, object) { pubClient.get(pathfileval, function(err, object) {
@ -505,15 +505,15 @@ function onCollection(err, collection) {
var user = objecttmp.user25user var user = objecttmp.user25user
//io.join(user); //io.join(user);
//io.to(user).emit(reslog); //io.to(user).emit(reslog);
//pubClient.get(issend, function(err, object) { pubClient.get(issend, function(err, object) {
//if(err == null){ if(err == null){
//pubClient.set(issend, itemsProcessed, function(err, res) { pubClient.set(issend, itemsProcessed, function(err, res) {
io.in(user).emit("logdata", reslog); io.in(user).emit("logdata", reslog);
//}); });
//} }
itemsProcessed++; itemsProcessed++;
}); });
//}); });
} }
}); });

Loading…
Cancel
Save