Files
actual/packages/sync-server/app.js
Michael Clark 7faecf4273 feedback (#5)
* feedback

* remove temp script
2025-02-10 19:26:54 +00:00

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