Log which file dir it uses
This commit is contained in:
parent
9ec349e733
commit
fa32948508
1 changed files with 5 additions and 1 deletions
|
@ -19,9 +19,13 @@ const app = express();
|
||||||
app.use(errorMiddleware);
|
app.use(errorMiddleware);
|
||||||
|
|
||||||
async function init() {
|
async function init() {
|
||||||
|
let fileDir = join(__dirname, process.env.ACTUAL_USER_FILES || config.files);
|
||||||
|
|
||||||
|
console.log('Initializing Actual with user file dir:', fileDir);
|
||||||
|
|
||||||
await actual.init({
|
await actual.init({
|
||||||
config: {
|
config: {
|
||||||
dataDir: join(__dirname, process.env.ACTUAL_USER_FILES || config.files)
|
dataDir: fileDir
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue