Disclaimer: I\'m a node.js/grunt/bower newbie.
I have a node.js/grunt/bower application that I\'m trying to deploy on Heroku. Heroku builds the application as expect
Thanks for the answer. After trying the tutorial mentioned above and looking at the solutions in node.js TypeError: path must be absolute or specify root to res.sendFile [failed to parse JSON] I ended up writing a server.js file which solved the problem. And it looks like this:
var express = require('express');
var app = express();
app.get('/', function (req, res) {
res.sendFile(__dirname + '/index.html');
});
app.get(/^(.+)$/, function (req, res) {
res.sendFile(__dirname + req.params[0]);
});
var PORT = process.env.PORT || 3000;
app.listen(PORT);