import { BackofficeBackendApp } from './BackofficeBackendApp' ; try { new BackofficeBackendApp ( ) . start ( ) . catch ( handleError ) ; } catch ( e ) { handleError ( e ) ; } process . on ( 'uncaughtException' , err => { console . log ( 'uncaughtException' , err ) ; process . exit ( 1 ) ; } ) ; function handleError ( e ) { console . log ( e ) ; process . exit ( 1 ) ; }