mirror of
https://github.com/Raghu-Ch/InventoryApp.git
synced 2026-02-10 12:53:03 -05:00
updates for heorku deploy
This commit is contained in:
@@ -7,7 +7,8 @@
|
|||||||
"build": "ng build",
|
"build": "ng build",
|
||||||
"test": "ng test",
|
"test": "ng test",
|
||||||
"lint": "ng lint",
|
"lint": "ng lint",
|
||||||
"e2e": "ng e2e"
|
"e2e": "ng e2e",
|
||||||
|
"postinstall": "ng build --aot -prod"
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -29,7 +30,9 @@
|
|||||||
"path": "^0.12.7",
|
"path": "^0.12.7",
|
||||||
"rxjs": "^6.3.0",
|
"rxjs": "^6.3.0",
|
||||||
"typescript": "~2.9.0",
|
"typescript": "~2.9.0",
|
||||||
"zone.js": "^0.8.26"
|
"zone.js": "^0.8.26",
|
||||||
|
"@angular/cli": "~6.1.5",
|
||||||
|
"@angular/compiler-cli": "^6.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular/compiler-cli": "^6.0.0",
|
"@angular/compiler-cli": "^6.0.0",
|
||||||
|
|||||||
@@ -5,12 +5,12 @@ 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(path.join(__dirname + 'dist')));
|
app.use(express.static(__dirname + '/dist/zid'));
|
||||||
|
|
||||||
app.get('/*', function (req, res) {
|
app.get('/*', function (req, res) {
|
||||||
|
|
||||||
res.sendFile(path.join(__dirname + 'dist/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
|
||||||
app.listen(process.env.PORT || 8080);
|
app.listen(process.env.PORT || 8080);
|
||||||
Reference in New Issue
Block a user