import debug from 'debug' const log = debug('http') import { app } from './app' const PORT = process.env.LISTEN_PORT || 8081 // start the app app.listen(PORT, (error) => { if (error) { return console.log('something bad happened', error) } log('listening on ' + PORT + '...') })