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

16 lines
332 B
JavaScript
Raw Normal View History

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