mirror of
https://github.com/Lissy93/dashy.git
synced 2024-09-11 14:17:02 +03:00
14 lines
334 B
JavaScript
14 lines
334 B
JavaScript
|
var connect = require('connect');
|
||
|
var serveStatic = require('serve-static');
|
||
|
|
||
|
const port = process.env.PORT || 3002;
|
||
|
|
||
|
try {
|
||
|
connect()
|
||
|
.use(serveStatic(__dirname+'/dist'))
|
||
|
.listen(port, () =>
|
||
|
console.log(`Boom, app is running on port ${port}`)
|
||
|
);
|
||
|
} catch(error) {
|
||
|
console.log('Something fucked up', error);
|
||
|
}
|