fix: update dockerfile

This commit is contained in:
max_richter 2025-01-05 23:23:11 +01:00
parent 052e15ce67
commit b10775daeb
2 changed files with 2 additions and 4 deletions

View File

@ -5,8 +5,7 @@ const DATA_DIR = Deno.env.has("DATA_DIR")
? path.resolve(Deno.env.get("DATA_DIR")!)
: path.resolve(Deno.cwd(), "data");
// const DB_FILE = "file://" + path.resolve(DATA_DIR, "db.sqlite");
const DB_FILE = "file:data-dev/db.sqlite";
const DB_FILE = "file:" + path.resolve(DATA_DIR, "db.sqlite");
export default defineConfig({
out: "./drizzle",

View File

@ -2,8 +2,7 @@ import { drizzle } from "drizzle-orm/libsql/node";
import { DATA_DIR } from "@lib/env.ts";
import path from "node:path";
// const DB_FILE = "file://" + path.resolve(DATA_DIR, "db.sqlite");
const DB_FILE = "file:data-dev/db.sqlite";
const DB_FILE = "file:" + path.resolve(DATA_DIR, "db.sqlite");
// You can specify any property from the libsql connection options
export const db = drizzle({