filo_caspar/index.mjs

10 lines
222 B
JavaScript
Raw Normal View History

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