title: Trying to install deepstream.io on heroku
body: <p>I've spent the past hour banging my head against a wall trying to get  a <code>deepstream.io</code> server up and running on heroku with no success.</p>
  
  <p>I've tried using the following: <a href="https://github.com/deepstreamIO/ds-demo-heroku" rel="nofollow noreferrer">https://github.com/deepstreamIO/ds-demo-heroku</a></p>
  
  <p>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:</p>
  
  <p><a href="https://i.stack.imgur.com/i0c0P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/i0c0P.png" alt="enter image description here"></a></p>
  
  <p>And that's the end of that. What am I doing wrong?</p>
  
  <hr>
  
  <p><strong>Sidenote:</strong> 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 <code>$PORT</code> 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.</p>
  
  <p>Secondly, it appears that deepstream.io requires <em>two</em> ports to be specified (one for TCP incomming traffic and the other from "browser" traffic, see <a href="https://deepstream.io/tutorials/core/getting-started-quickstart/" rel="nofollow noreferrer">https://deepstream.io/tutorials/core/getting-started-quickstart/</a>). If Heroku only provides one port that the app can bind to how can deepstream.io work if it requires two?</p>
  
  <p>Any help is much appreciated - thanks!</p>