Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const express = require('express');
- const app = express();
- const port = process.env.PORT || 8085
- app
- .use(express.static(__dirname + '/dist/'))
- .get(/.*/, (req, res) => {
- res.sendFile(__dirname + '/dist/index.html');
- })
- .listen(port);
- console.log('On'); // Sets what Port the Server is listening on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement