push testing

This commit is contained in:
Dominic Bosch 2013-11-13 20:35:17 +01:00
parent d671f7c09a
commit 19c6a7403f
3 changed files with 3 additions and 3 deletions

View file

@ -50,8 +50,7 @@ Run test suite:
Create the doc *(to be accessed via the webserver, e.g.: localhost:8125/doc/)*:
node create_doc
node create_doc
_

View file

@ -15,7 +15,7 @@ exports.print = function(module, msg) {
console.log((new Date()).toISOString() + ' | ' + module + ' | ' + msg);
};
// @function error(module, msg)
// @method error(module, msg)
/*
* Prints a log to stderr.

View file

@ -88,6 +88,7 @@ fs.readFile(path.resolve(__dirname, '..', 'config', 'config.json'), 'utf8', func
}
});
// Send message
process.on('message', function(cmd) {
if(typeof procCmds[cmd] === 'function') procCmds[cmd]();
else console.error('err with command');