From 85cafd985dae3e6fc6839dac2e436e911de066e9 Mon Sep 17 00:00:00 2001 From: avraham Date: Fri, 2 Aug 2024 16:40:28 -0400 Subject: [PATCH] don't use `/tmp` dir for lmdbx dbs --- server/.gitignore | 4 +++- server/src/calendardb.lmdbx.ts | 4 ++-- server/src/optiondb.lmdbx.ts | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/server/.gitignore b/server/.gitignore index 67ab059..8b84213 100644 --- a/server/.gitignore +++ b/server/.gitignore @@ -24,4 +24,6 @@ dist-ssr *.sln *.sw? -.env \ No newline at end of file +.env +*.db +*.db-lck \ No newline at end of file diff --git a/server/src/calendardb.lmdbx.ts b/server/src/calendardb.lmdbx.ts index c6b20e9..2e4bc6e 100644 --- a/server/src/calendardb.lmdbx.ts +++ b/server/src/calendardb.lmdbx.ts @@ -2,13 +2,13 @@ import type { CalendarDatabase } from "./calendardb.interfaces.js"; import { open } from "lmdbx"; const calendarAggregatesDb = open({ - path: "/tmp/calendar-aggregates.db", + path: "./calendar-aggregates.db", // any options go here, we can turn on compression like this: compression: true, }); const calendarExistenceDb = open({ - path: "/tmp/calendar-existence.db", + path: "./calendar-existence.db", // any options go here, we can turn on compression like this: compression: true, }); diff --git a/server/src/optiondb.lmdbx.ts b/server/src/optiondb.lmdbx.ts index 9fbf8a2..be69408 100644 --- a/server/src/optiondb.lmdbx.ts +++ b/server/src/optiondb.lmdbx.ts @@ -2,13 +2,13 @@ import type { OptionContractDatabase } from "./optiondb.interfaces.js"; import { open } from "lmdbx"; const optionContractAggregatesDb = open({ - path: "/tmp/option-contract-aggregates.db", + path: "./option-contract-aggregates.db", // any options go here, we can turn on compression like this: compression: true, }); const optionContractExistenceDb = open({ - path: "/tmp/option-contract-existence.db", + path: "./option-contract-existence.db", // any options go here, we can turn on compression like this: compression: true, });