mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-12 00:53:55 +00:00
15 lines
374 B
JavaScript
15 lines
374 B
JavaScript
import app from './app'
|
|
|
|
const port = app.get('port')
|
|
|
|
process.on('nuxt:build:done', (err) => {
|
|
if (err) {
|
|
console.error(err) // eslint-disable-line no-console
|
|
process.exit(1)
|
|
}
|
|
const server = app.listen(port)
|
|
server.on('listening', () =>
|
|
console.log(`Feathers application started on ${app.get('host')}:${port}`) // eslint-disable-line no-console
|
|
)
|
|
})
|