title: Port timeout deploying Loopback app to Heroku
body: <p>I deployed an Loopback app to Heroku, but it keeps crashing with error</p>
  
  <p><code>Web process failed to bind to $PORT within 60 seconds of launch</code>  </p>
  
  <p>I know it could be connected to the dynamic port of Heroku, so I set my port to the process environment one doing</p>
  
  <pre><code>app.start = function () {
    // start the web server
  
    var port = process.env.PORT || 3000;
  
    app.set('port', port);
  
    app.use(loopback.static(path.resolve(__dirname, '../client')));
    app.use(loopback.static(path.resolve(__dirname, '../.tmp')));
  
    return app.listen(function () {
      app.emit('started');
      console.log('Web server listening at: %s', app.get('url'));
    });
  };
  </code></pre>
  
  <p>but this didn't fix the issue.<br>
  Any idea?</p>