const express = require('express');
const path = require('path');
const port = process.env.PORT || 8080;
const app = express();

app.use(express.static(__dirname + '/site'));

app.get('*', function (request, response) {
  response.sendFile(path.resolve(__dirname + '/site/', 'index.html'));
});

app.listen(port);
console.log("site server started on port " + port);