the last commit --Heroku_deploy

This commit is contained in:
Raghu-Ch
2018-09-10 14:12:13 -04:00
parent 654366c344
commit 1b4653e8e0

View File

@@ -5,11 +5,11 @@ const path = require('path');
const app = express();
// Serve only the static files form the dist directory
app.use(express.static(__dirname + '/dist'));
app.use(express.static(__dirname + '/dist/zid'));
app.get('/*', function (req, res) {
res.sendFile(path.join(__dirname + '/dist/index.html'));
res.sendFile(path.join(__dirname + '/dist/zid/index.html'));
});
// Start the app by listening on the default Heroku port