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

@ -108,12 +108,6 @@ function listen(prefix, socket) {
config.listen(socket, authCheck);
webconsole({
prefix: prefix + '/console',
socket: socket,
authCheck: authCheck
});
edward.listen(socket, {
size: size,
root: root,
@ -152,6 +146,12 @@ function listen(prefix, socket) {
prefix: prefix + '/ishtar',
authCheck: authCheck
});
config('console') && webconsole({
prefix: prefix + '/console',
socket: socket,
authCheck: authCheck
});
}
function cloudcmd(prefix) {