hotfix 0.9.1 docker fails due to trying to open a browser

This commit is contained in:
dswbx
2025-03-10 12:28:38 +01:00
parent 8550aef606
commit eabae5d3df
4 changed files with 14 additions and 6 deletions

View File

@@ -47,6 +47,7 @@ export const run: CliCommand = (program) => {
.choices(PLATFORMS)
.default(isBun ? "bun" : "node"),
)
.addOption(new Option("--no-open", "don't open browser window on start"))
.action(action);
};
@@ -110,6 +111,7 @@ async function action(options: {
dbUrl?: string;
dbToken?: string;
server: Platform;
open?: boolean;
}) {
colorizeConsole(console);
const configFilePath = await getConfigPath(options.config);
@@ -145,5 +147,5 @@ async function action(options: {
});
}
await startServer(options.server, app, { port: options.port });
await startServer(options.server, app, { port: options.port, open: options.open });
}