diff --git a/Dockerfile.bun b/Dockerfile.bun index 1804d3f788..abdb735a44 100644 --- a/Dockerfile.bun +++ b/Dockerfile.bun @@ -86,4 +86,4 @@ EXPOSE 20128 HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \ CMD bun healthcheck.mjs || exit 1 -ENTRYPOINT ["bun", "bin/omniroute.mjs", "serve", "--no-open"] +ENTRYPOINT ["bun", "dev/run-standalone.mjs"] diff --git a/src/lib/db/adapters/driverFactory.ts b/src/lib/db/adapters/driverFactory.ts index 64c06153db..304b334bd8 100644 --- a/src/lib/db/adapters/driverFactory.ts +++ b/src/lib/db/adapters/driverFactory.ts @@ -224,7 +224,10 @@ export function createSyncDriverFactory(load: DriverLoader, betterSqliteProbe?: const bunOptions: Record = {}; if (options?.readonly === true) bunOptions.readonly = true; if (options?.create === false && filePath !== ":memory:") bunOptions.create = false; - const db = new Database(filePath, bunOptions); + const db = + Object.keys(bunOptions).length > 0 + ? new Database(filePath, bunOptions) + : new Database(filePath); return createBunSqliteAdapter(db, filePath); } catch (err) { logSwallowedDriverError("bun:sqlite", err);