diff --git a/packages/server/src/cli.ts b/packages/server/src/cli.ts index 1532f627c..d83fd94da 100644 --- a/packages/server/src/cli.ts +++ b/packages/server/src/cli.ts @@ -175,6 +175,11 @@ export class Entry extends Command { } : 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)); app.server.listen(flags.port, flags.host); let clientId = 1;