mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-27 09:38:09 -05:00
12 lines
359 B
JavaScript
12 lines
359 B
JavaScript
import runMigrations from './src/migrations.js';
|
|
|
|
runMigrations()
|
|
.then(() => {
|
|
//import the app here becasue initial migrations need to be run first - they are dependencies of the app.js
|
|
import('./src/app.js').then(app => app.default()); // run the app
|
|
})
|
|
.catch(err => {
|
|
console.log('Error starting app:', err);
|
|
process.exit(1);
|
|
});
|