I use with forever:
ng build --prod --output-path ./dist
Create server.js file in your Angular application path:
const express = require('express');
const path = require('path');
const app = express();
app.use(express.static(__dirname + '/dist'));
app.get('/*', function(req,res) {
res.sendFile(path.join(__dirname + '/dist/index.html'));
});
app.listen(80);
Start forever forever start server.js
That's all! your application should be running!