mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-22 00:13:45 -05:00
* getAccountDb * uuidv4 * === / !== * default exports * re-enable linting for the server * fix jest * note
12 lines
366 B
JavaScript
12 lines
366 B
JavaScript
import { run as 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.run()); // run the app
|
|
})
|
|
.catch(err => {
|
|
console.log('Error starting app:', err);
|
|
process.exit(1);
|
|
});
|