Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function init () {
try {
debug('Opening database file %s', dbPath)
await db.open(dbPath)
debug('Running database migrations')
await db.migrate({
migrationsPath,
// force: 'last',
})
server.listen(project.serverPort)
debug(`Server is now running on port ${project.serverPort}`)
} catch (e) {
debug(e)
process.exit(1)
}
}