Nuxt/examples/with-feathers/src/index.js

16 lines
392 B
JavaScript
Raw Normal View History

2017-10-31 13:43:55 +00:00
'use strict'
2017-01-11 19:13:38 +00:00
2017-10-31 13:43:55 +00:00
const app = require('./app')
const port = app.get('port')
2017-01-11 19:13:38 +00:00
process.on('nuxt:build:done', (err) => {
if (err) {
2017-10-31 13:43:55 +00:00
console.error(err) // eslint-disable-line no-console
process.exit(1)
2017-01-11 19:13:38 +00:00
}
2017-10-31 13:43:55 +00:00
const server = app.listen(port)
2017-01-11 19:13:38 +00:00
server.on('listening', () =>
2017-10-31 13:43:55 +00:00
console.log(`Feathers application started on ${app.get('host')}:${port}`) // eslint-disable-line no-console
)
})