Skip to content

Commit

Permalink
Add DATA_DIR env var (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjg authored Nov 5, 2023
1 parent 86198f0 commit e1b5f91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ export class Server {
#repo

constructor() {
const dir = ".amrg"
const dir =
process.env.DATA_DIR !== undefined ? process.env.DATA_DIR : ".amrg"
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir)
}
Expand Down

0 comments on commit e1b5f91

Please sign in to comment.