Heroku deploy changes

This commit is contained in:
Raghu-Ch
2018-09-11 11:13:16 -04:00
parent 1b4653e8e0
commit 6a48e8e898
2 changed files with 3 additions and 3 deletions

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/zid'));
app.use(express.static(__dirname + '/dist/ZID'));
app.get('/*', function (req, res) {
res.sendFile(path.join(__dirname + '/dist/zid/index.html'));
res.sendFile(path.join(__dirname + '/dist/ZID/index.html'));
});
// Start the app by listening on the default Heroku port