From 6a48e8e89827cc42a98c108be009f3a508d81cd3 Mon Sep 17 00:00:00 2001 From: Raghu-Ch Date: Tue, 11 Sep 2018 11:13:16 -0400 Subject: [PATCH] Heroku deploy changes --- package.json | 2 +- server.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 828cba1..789c619 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "test": "ng test", "lint": "ng lint", "e2e": "ng e2e", - "postinstall": "ng build --aot --target=production" + "postinstall": "ng build --aot --prod" }, "private": true, "dependencies": { diff --git a/server.js b/server.js index 3089c13..0ea947c 100644 --- a/server.js +++ b/server.js @@ -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