I've spent the past hour banging my head against a wall trying to get a deepstream.io
server up and running on heroku with no success.
I've tried using the following: https://github.com/deepstreamIO/ds-demo-heroku
I've cloned that repo exactly with no modifications whatsoever and placed it in my own repo which my heroku app pulls from. When heroku tries to build it and run it I see this in my logs:
And that's the end of that. What am I doing wrong?
Sidenote: I have read that Heroku does not allow any desired port to be left open for apps, but it passes one that an app can use in the $PORT
variable? If this is correct, how would this work in a production environment where endpoints need to connect reliably to a server at a specific port. If for some reason the server app crashed, was restarted and then Heroku assigned it a different port now all the endpoints would be unable to connect.
Secondly, it appears that deepstream.io requires two ports to be specified (one for TCP incomming traffic and the other from "browser" traffic, see https://deepstream.io/tutorials/core/getting-started-quickstart/). If Heroku only provides one port that the app can bind to how can deepstream.io work if it requires two?
Any help is much appreciated - thanks!