lbry.tech/server.js

14 lines
273 B
JavaScript
Raw Normal View History

2018-03-28 16:26:59 +02:00
// server.js
var express = require('express');
var path = require('path');
var serveStatic = require('serve-static');
app = express();
app.use(serveStatic(__dirname + "/dist"));
var port = process.env.PORT || 80;
app.listen(port);
console.log('server started '+ port);