hotfix 0.9.1 docker fails due to trying to open a browser

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

No files matched your search

+3 -1
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 });
}