Skip to content

Commit 5734a18

Browse files
committed
Create working directory if it doesn't exist
1 parent 04c6422 commit 5734a18

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/server/src/cli.ts

+5
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@ export class Entry extends Command {
175175
} : undefined,
176176
});
177177

178+
if (!fs.existsSync(workingDir)) {
179+
logger.info("Creating working directory", field("working-dir", workingDir));
180+
fs.mkdirSync(workingDir);
181+
}
182+
178183
logger.info("Starting webserver...", field("host", flags.host), field("port", flags.port));
179184
app.server.listen(flags.port, flags.host);
180185
let clientId = 1;

0 commit comments

Comments
 (0)