db file from env var
This commit is contained in:
parent
6224b124a8
commit
c0cbbf2ed1
@ -27,7 +27,7 @@ function escapeHtml(unsafe) {
|
|||||||
|
|
||||||
// db
|
// 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');
|
db.pragma('journal_mode = WAL');
|
||||||
|
|
||||||
const migrations = [
|
const migrations = [
|
||||||
|
Loading…
Reference in New Issue
Block a user