From c0cbbf2ed1ff2ccbbf056ad854de30d5c8333cfe Mon Sep 17 00:00:00 2001 From: me Date: Fri, 14 Mar 2025 10:05:44 +0200 Subject: [PATCH] db file from env var --- backend/src/main.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main.mjs b/backend/src/main.mjs index be29660..b77da3f 100644 --- a/backend/src/main.mjs +++ b/backend/src/main.mjs @@ -27,7 +27,7 @@ function escapeHtml(unsafe) { // db -const db = new Database('ucs.db'); // , { verbose: console.log }); +const db = new Database(process.env.DB || 'ucs.db'); // , { verbose: console.log }); db.pragma('journal_mode = WAL'); const migrations = [