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

15 lines
374 B
JavaScript
Raw Normal View History

2018-03-16 16:12:06 +00:00
import app from './app'
2017-01-11 19:13:38 +00:00
2017-10-31 13:43:55 +00:00
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
)
})