mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(cloudcmd) add ability to disable console with "--no-console" (#65)
This commit is contained in:
parent
6b26b26115
commit
c3c008ff72
12 changed files with 79 additions and 14 deletions
|
|
@ -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)
|
||||
}));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue