feature(cloudcmd) add ability to disable console with "--no-console" (#65)

This commit is contained in:
coderaiser 2016-11-09 15:57:44 +02:00
parent 6b26b26115
commit c3c008ff72
12 changed files with 79 additions and 14 deletions

View file

@ -4,6 +4,7 @@ const http = require('http');
const os = require('os');
const express = require('express');
const io = require('socket.io');
const writejson = require('writejson');
const readjson = require('readjson');
@ -23,7 +24,10 @@ module.exports = (config, fn = config) => {
server.close();
};
const socket = io.listen(server);
app.use(cloudcmd({
socket,
config: assign(defaultConfig(), config)
}));