12 lines
303 B
JavaScript
12 lines
303 B
JavaScript
import log from './api/log.mjs'
|
|
import setup from './api/setup.mjs'
|
|
|
|
// Run the database script automatically.
|
|
log.info('Running database integrity scan.')
|
|
|
|
setup().then(() => {
|
|
import('./api/server.mjs')
|
|
}).catch((error) => {
|
|
log.error(error, 'Error while preparing database')
|
|
process.exit(1)
|
|
})
|