Update: Environment for Heroku Production
This commit is contained in:
parent
d29741f9a8
commit
5024b297ec
3 changed files with 34975 additions and 3 deletions
|
|
@ -20,7 +20,7 @@
|
|||
"build": {
|
||||
"builder": "@angular-devkit/build-angular:browser",
|
||||
"options": {
|
||||
"outputPath": "dist/admin",
|
||||
"outputPath": "dist/frontend-admin",
|
||||
"index": "src/index.html",
|
||||
"main": "src/main.ts",
|
||||
"polyfills": "src/polyfills.ts",
|
||||
|
|
|
|||
34972
package-lock.json
generated
Normal file
34972
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -3,9 +3,9 @@ const express = require('express');
|
|||
const app = express();
|
||||
const port = process.env.PORT || 3000;
|
||||
|
||||
app.use(express.static(__dirname + '/dist/frontend'));
|
||||
app.use(express.static(__dirname + '/dist/frontend-admin'));
|
||||
app.get('/*', function(req,res) {
|
||||
res.sendFile(path.join(__dirname+ '/dist/frontend/index.html'));
|
||||
res.sendFile(path.join(__dirname+ '/dist/frontend-admin/index.html'));
|
||||
});
|
||||
|
||||
app.listen(port, '0.0.0.0',() => {
|
||||
|
|
|
|||
Reference in a new issue