import installSeeds from '../../../database/seeds/run' ; import getDatabase from '../../../database' ; import logger from '../../../logger' ; export default async function start ( ) { const database = getDatabase ( ) ; try { await installSeeds ( database ) ; database . destroy ( ) ; process . exit ( 0 ) ; } catch ( err ) { logger . error ( err ) ; database . destroy ( ) ; process . exit ( 1 ) ; } }