import App from './app' ; import config from './config' ; import logger from './utils/logger' ; function run ( ) { if ( require . main === module ) { const app = new App ( ) ; app . init ( config ) . catch ( ( err ) => { logger . fatal ( err ) ; process . exit ( 1 ) ; } ) ; } } run ( ) ;