Files
actual/packages/sync-server/app.js
Matt Fiddaman f1a4c888b2 Re-enable linting on the server (#4363)
* getAccountDb

* uuidv4

* === / !==

* default exports

* re-enable linting for the server

* fix jest

* note
2025-02-12 21:42:07 +00:00

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);
});