I have my first node.js app (runs fine locally) - but I am unable to deploy it via heroku (first time w/ heroku as well). The code is below. SO doesn\'t let me write so much
change this line
app.listen(port);
to
app.listen(process.env.PORT, '0.0.0.0');
it will work