Heroku and standalone ... problems getting app running

Heroku standalone client does not work anymore , because I could not get the apps timestamp and headerparser running with it. However on the heroku page you can link your github repo with the Heroku app and it configure it for automatic update. This way I at least succeeded … however you have still consider all the other changes like a right package.json , a Procfile and port 8080 probably won’t work , so I changed it to 5000 and process.env.PORT

            with var port = process.env.PORT || 5000

It nearly drove me crazy …
So far about April 22, 2017 … wonder how long this is gonna work

On a realtime server, only two designated default port number works. 80 for http and 443 for https. You have to define a port number variable like you did, process.env.port || [LOCAL_PORT_NUMBER].