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

@@ -12,6 +12,8 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/cli": "~6.1.5",
"@angular/compiler-cli": "^6.0.0",
"@angular/animations": "^6.0.0", "@angular/animations": "^6.0.0",
"@angular/cdk": "^6.2.0", "@angular/cdk": "^6.2.0",
"@angular/common": "^6.0.0", "@angular/common": "^6.0.0",
@@ -30,9 +32,7 @@
"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",

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'));
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/index.html'));
}); });
// Start the app by listening on the default Heroku port // Start the app by listening on the default Heroku port