diff options
| author | yyamashita <yyamashita@mosquit.one> | 2026-05-07 23:26:57 +0900 |
|---|---|---|
| committer | yyamashita <yyamashita@mosquit.one> | 2026-05-07 23:26:57 +0900 |
| commit | 40f4f59a5a5649dd34b52c1862ce3324bab002d1 (patch) | |
| tree | 10b17b689271c0672db22acc67c5749e9aa5ce7e /app/lib/db.server.ts | |
| parent | ff7836e5bf2b703780a94223fb41480fe7a906d0 (diff) | |
Add Docker + Hetzner deploy setup
Diffstat (limited to 'app/lib/db.server.ts')
| -rw-r--r-- | app/lib/db.server.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/lib/db.server.ts b/app/lib/db.server.ts index 26735c6..6da5a1c 100644 --- a/app/lib/db.server.ts +++ b/app/lib/db.server.ts @@ -3,7 +3,9 @@ import path from "path"; import { fileURLToPath } from "url"; const __dirname = path.dirname(fileURLToPath(import.meta.url)); -const DB_PATH = path.join(__dirname, "../../events.db"); +const DB_PATH = process.env.DB_PATH + ? path.resolve(process.env.DB_PATH) + : path.join(__dirname, "../../events.db"); let _db: Database.Database | null = null; |
