mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
fix(cloudcmd) server start when importListen enabled
This commit is contained in:
parent
9483fbeb5d
commit
f662ec0e67
1 changed files with 2 additions and 2 deletions
|
|
@ -217,14 +217,14 @@ function main() {
|
|||
if (args['show-config'])
|
||||
showConfig();
|
||||
|
||||
const startWraped = wraptile(start, options, config);
|
||||
const distribute = require('../server/distribute');
|
||||
const importConfig = promisify(distribute.import);
|
||||
const caller = (fn) => fn();
|
||||
|
||||
importConfig(config)
|
||||
.then(args.save ? caller(config.write) : noop)
|
||||
.then(startWraped);
|
||||
|
||||
start(options, config);
|
||||
}
|
||||
|
||||
function validateRoot(root, config) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue