Update: build && server frontend

This commit is contained in:
Yûki VACHOT 2022-01-24 22:53:20 +01:00
parent 38098497a5
commit db79c561c7
90 changed files with 6 additions and 6 deletions

View file

@ -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}`);
});