Update: build && server frontend
This commit is contained in:
parent
38098497a5
commit
db79c561c7
90 changed files with 6 additions and 6 deletions
|
|
@ -1,13 +0,0 @@
|
|||
const path = require('path');
|
||||
const express = require('express');
|
||||
const app = express();
|
||||
const port = process.env.PORT || 4200;
|
||||
|
||||
app.use(express.static(__dirname + '/dist/frontend'));
|
||||
app.get('/*', function(req,res) {
|
||||
res.sendFile(path.join(__dirname+ '/dist/frontend/index.html'));
|
||||
});
|
||||
|
||||
app.listen(port, '0.0.0.0',() => {
|
||||
console.log (`listening on port ${port}`);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue