1const express = require('express');
2const http = require('http');
3const path = require('path');
4
5const app = express();
6
7const port = process.env.PORT || 3001;
8
9app.use(express.static(__dirname + '/dist/my-app-name'));
10
11app.get('/*', (req, res) => res.sendFile(path.join(__dirname)));
12
13const server = http.createServer(app);
14
15server.listen(port, () => console.log(`App running on: http://localhost:${port}`));
16