mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
fix(cloudcmd) importListen prevent server from start (#295)
This commit is contained in:
parent
8932378e07
commit
0b74250248
1 changed files with 3 additions and 2 deletions
|
|
@ -210,13 +210,14 @@ async function main() {
|
|||
const distribute = require('../server/distribute');
|
||||
const importConfig = promisify(distribute.import);
|
||||
|
||||
start(options, config);
|
||||
|
||||
await tryToCatch(checkUpdate);
|
||||
await importConfig(config);
|
||||
|
||||
if (args.save)
|
||||
config.write();
|
||||
|
||||
start(options, config);
|
||||
await tryToCatch(checkUpdate);
|
||||
}
|
||||
|
||||
function validateRoot(root, config) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue