import app from './app'; import { connection } from '@mifi/auth-db/lib'; import { PORT } from './constants/env'; connection.then( () => { app.listen(PORT); console.debug('Server up and listening', { env: process.env }); }, (err) => console.error('Could not reach database', { err, env: process.env }), );