2020-04-06 22:47:58 +00:00
|
|
|
import log from './api/log.mjs'
|
2016-04-10 08:37:05 +00:00
|
|
|
|
|
|
|
// Run the database script automatically.
|
2020-04-06 23:05:03 +00:00
|
|
|
log.info('Starting server.')
|
2016-04-10 08:37:05 +00:00
|
|
|
|
2020-04-06 23:05:03 +00:00
|
|
|
import('./api/server.mjs').catch((error) => {
|
|
|
|
log.error(error, 'Error while starting server')
|
2016-04-10 08:37:05 +00:00
|
|
|
process.exit(1)
|
|
|
|
})
|