Create working directory if it doesn't exist
This commit is contained in:
parent
0e5ed11597
commit
06855adaa5
@ -175,6 +175,11 @@ export class Entry extends Command {
|
|||||||
} : undefined,
|
} : undefined,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!fs.existsSync(workingDir)) {
|
||||||
|
logger.info("Creating working directory", field("working-dir", workingDir));
|
||||||
|
fs.mkdirSync(workingDir);
|
||||||
|
}
|
||||||
|
|
||||||
logger.info("Starting webserver...", field("host", flags.host), field("port", flags.port));
|
logger.info("Starting webserver...", field("host", flags.host), field("port", flags.port));
|
||||||
app.server.listen(flags.port, flags.host);
|
app.server.listen(flags.port, flags.host);
|
||||||
let clientId = 1;
|
let clientId = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user