updates for deployment

This commit is contained in:
Raghu-Ch
2018-09-10 14:02:35 -04:00
parent b5c7e51a3b
commit 654366c344
2 changed files with 5 additions and 5 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'));
app.get('/*', function (req, res) {
res.sendFile(path.join(__dirname + '/dist/zid/index.html'));
res.sendFile(path.join(__dirname + '/dist/index.html'));
});
// Start the app by listening on the default Heroku port