Skip to content
Snippets Groups Projects
Commit e6ef8aed authored by wactbprot's avatar wactbprot
Browse files

..

parent fe66b25e
No related branches found
No related tags found
No related merge requests found
......@@ -13,23 +13,36 @@ module.exports = function(cb){
// call to start sc-broker clients
require("./lib/load").ini(function(err){
require("./lib/run").ini(function(err){
require("./lib/build").ini(function(err){
require("./lib/observe").ini(function(err){
require("./lib/mphandle").ini(function(err){
require("./lib/cdhandle").ini(function(err){
log.info(ok
, "----> ssmp clients start with access to port "+ conf.mem.port
);
if(_.isFunction(cb)){
log.info(ok
, "execute clients callback");
cb();
}
});
});
});
log.trace(ok
, "load callback");
require("./lib/run").ini(function(err){
log.trace(ok
, "run callback");
require("./lib/build").ini(function(err){
log.trace(ok
, "build callback");
require("./lib/observe").ini(function(err){
log.trace(ok
, "observe callback");
require("./lib/mphandle").ini(function(err){
log.trace(ok
, "mphandle callback");
require("./lib/cdhandle").ini(function(err){
log.trace(ok
, "cdhandle callback");
log.info(ok
, "----> ssmp clients start with access to port "+ conf.mem.port
);
if(_.isFunction(cb)){
log.info(ok
, "execute clients callback");
cb();
}
});
});
});
});
});
});
});
};
......@@ -21,8 +21,11 @@ module.exports = function(cb) {
, log = bunyan.createLogger({name: name,
streams: conf.log.streams
})
, mem = broker.createClient({port: conf.mem.port})
, server = restify.createServer({name: name})
, mem = broker.createClient({port: conf.mem.port
})
var server = restify.createServer({name: name})
server.pre(restify.pre.sanitizePath());
server.use(restify.queryParser());
......
......@@ -8,15 +8,15 @@
"url": "https://github.com/wactbprot/ssmp"
},
"dependencies": {
"underscore": ">=1.8.3",
"clone": ">=1.0.2",
"restify": ">=3.0.3",
"bunyan": ">=1.3.5",
"bunyan": "^2.0.2",
"bunyan-tcp2": ">=1.0.0",
"object-path": ">=0.9.2",
"socket.io": ">=1.3.5",
"sc-broker": ">=2.1.0",
"handlebars": ">=4.0.0"
"clone": "^2.1.1",
"handlebars": "^4.0.11",
"object-path": "^0.11.4",
"restify": "^4.3.2",
"sc-broker": "^5.0.2",
"socket.io": "^2.0.4",
"underscore": ">=1.8.3"
},
"scripts": {
"doc": "jsdoc -c ./jsdoc-conf.json -R README.md -t ./node_modules/ink-docstrap/template/ -d jsdoc",
......@@ -26,12 +26,12 @@
"cover": "istanbul cover _mocha -- -R spec | bunyan -l 100"
},
"devDependencies": {
"jsdoc": ">=3.4.0",
"ink-docstrap": ">=1.1.0",
"istanbul": ">=0.4.0",
"ink-docstrap": "^1.3.2",
"istanbul": "^0.4.5",
"jsdoc": "^3.5.5",
"look": ">=0.1.3",
"mocha": ">=2.3.0",
"prettyjson": ">=1.1.2"
"mocha": "^4.0.1",
"prettyjson": "^1.2.1"
},
"optionalDependencies": {},
"engines": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment