dashy/server.js

15 lines
341 B
JavaScript
Raw Normal View History

2019-07-23 18:03:59 +03:00
var connect = require('connect')
var serveStatic = require('serve-static')
2019-07-20 23:50:29 +03:00
2019-07-23 18:03:59 +03:00
const port = process.env.PORT || 3002
2019-07-20 23:50:29 +03:00
try {
connect()
2019-07-23 18:03:59 +03:00
.use(serveStatic(__dirname + '/dist'))
.listen(port, () =>
console.log(`Boom, app is running on port ${port}`)
)
} catch (error) {
console.log('Something fucked up', error)
}