Log which file dir it uses

This commit is contained in:
James Long 2022-04-29 10:42:04 -04:00
parent 9ec349e733
commit fa32948508

View file

@ -19,9 +19,13 @@ const app = express();
app.use(errorMiddleware);
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({
config: {
dataDir: join(__dirname, process.env.ACTUAL_USER_FILES || config.files)
dataDir: fileDir
}
});
}