I have an Angular 5 App.
This is what I have in my package.json
{
"name": "web",
"version": "0.0.0&
Correct your code in Server.js
const express = require('express');
const app = express();
const path = require('path');
app.use(express.static(__dirname+'/dist'));
app.listen(process.env.PORT||8080);
//Path Location Strategy
app.get('/', function(req, res) {
res.sendFile(path.join(__dirname+'/dist/index.html'));
});
console.log('Console Listening');
For future reference -
try running logs
command before hitting the URL.
$ heroku logs
Then check the logs for further details.