Skip to content

Commit

Permalink
added sqlite env config
Browse files Browse the repository at this point in the history
  • Loading branch information
bmgalego committed Nov 20, 2024
1 parent 84d4aeb commit 0f6877f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@ function initializeDatabase(dataDir: string) {
});
return db;
} else {
const filePath = path.resolve(dataDir, "db.sqlite");
const filePath = path.resolve(
dataDir,
process.env.SQLITE_FILE ?? "db.sqlite"
);
const db = new SqliteDatabaseAdapter(new Database(filePath));
return db;
}
Expand Down

0 comments on commit 0f6877f

Please sign in to comment.