mirror of
https://github.com/Raghu-Ch/InventoryApp.git
synced 2026-02-10 04:43:02 -05:00
Heroku deploy changes
This commit is contained in:
@@ -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": {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user