Heoku accepts ports dynamically so use:
app.listen(process.env.PORT || 5000)
that will bind it to the correct port during run.