dashy/server.js

14 lines
358 B
JavaScript
Raw Normal View History

2019-09-01 14:38:13 +02:00
const connect = require('connect');
const serveStatic = require('serve-static');
const port = process.env.PORT || 3002;
/* eslint no-console: 0 */
try {
connect()
.use(serveStatic(`${__dirname}/dist`))
2019-10-13 01:33:11 +02:00
.listen(port, () => console.log(`Boom, app is running on port ${port} 🚀`));
2019-09-01 14:38:13 +02:00
} catch (error) {
console.log('Something fucked up', error);
2019-07-23 17:03:59 +02:00
}