aboutsummaryrefslogtreecommitdiff
path: root/vnext/server/index.js
blob: bbb5a57864b7cdd5a80d465cfc212a14e3db8b97 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 + '...')
})