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

@@ -8,7 +8,7 @@
"test": "ng test", "test": "ng test",
"lint": "ng lint", "lint": "ng lint",
"e2e": "ng e2e", "e2e": "ng e2e",
"postinstall": "ng build --aot --target=production" "postinstall": "ng build --aot --prod"
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {

View File

@@ -5,11 +5,11 @@ const path = require('path');
const app = express(); const app = express();
// Serve only the static files form the dist directory // 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) { 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 // Start the app by listening on the default Heroku port