I launched a node.js server with the following line to set the port:
app.set(\'port\', process.env.PORT || 8080);
This means that, it shoul
You should use the port opened by heroku like so:
port = process.env.PORT || 80
It sets the port to 80 if it has somehow not been set already