title: NestJS Heroku Deploy H10
body: <p>I deploy a NestJS Application to Heroku and get <code>H10 Error</code></p>
  
  <p>Log:</p>
  
  <pre class="lang-sh prettyprint-override"><code>2020-05-07T13:12:51.967622+00:00 heroku[web.1]: State changed from starting to crashed
  
  2020-05-07T13:15:14.556288+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=scalenode.herokuapp.com request_id=535e5643-26ad-4fbe-acf3-7f805c8c463c fwd="91.64.79.140" dyno= connect= service= status=503 bytes= protocol=https
  </code></pre>
  
  <p>Its stunning, because the Error comes because of <code>GET</code> Request. Node has been compiled successfully. I deployed via HerokuCli and Github. Both has the same result. But if I test it with HerokuCli locally with <code>heroku local web</code>, it works.</p>
  
  <p>It does not seems to be a deployment error itself, its seems to be the route <code>/</code> cant be resolved so the app crashes. When I open the app in browser after successfully deploy, it seems to be a timeout. </p>
  
  <p><a href="https://github.com/equaliser0/scale_prototype" rel="nofollow noreferrer">Here is the Repo</a>. I have a 'Hello World' string on <code>/</code> route. I cant find out whats wrong. </p>
  
  <p>I use a Procfile for the instance, which seems to be fine:</p>
  
  <pre><code>web: node dist/main.js
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>I tried to have a static HTML Response and tried stable Node Version 12.x.</p>
  
  <p>I dont get it</p>
  
  <pre class="lang-sh prettyprint-override"><code>2020-05-07T14:22:40.862206+00:00 app[web.1]: [32m[Nest] 4   - [39m05/07/2020, 2:22:40 PM   [38;5;3m[RoutesResolver] [39m[32mAppController {}:[39m[38;5;3m +6ms[39m
  
  2020-05-07T14:22:40.865503+00:00 app[web.1]: [32m[Nest] 4   - [39m05/07/2020, 2:22:40 PM   [38;5;3m[RouterExplorer] [39m[32mMapped {, GET} route[39m[38;5;3m +3ms[39m
  
  2020-05-07T14:22:40.865886+00:00 app[web.1]: [32m[Nest] 4   - [39m05/07/2020, 2:22:40 PM   [38;5;3m[RoutesResolver] [39m[32mAuthController {}:[39m[38;5;3m +0ms[39m
  
  2020-05-07T14:22:40.867140+00:00 app[web.1]: [32m[Nest] 4   - [39m05/07/2020, 2:22:40 PM   [38;5;3m[RouterExplorer] [39m[32mMapped {/auth/login, POST} route[39m[38;5;3m +2ms[39m
  
  2020-05-07T14:22:40.867778+00:00 app[web.1]: [32m[Nest] 4   - [39m05/07/2020, 2:22:40 PM   [38;5;3m[RouterExplorer] [39m[32mMapped {/profile, GET} route[39m[38;5;3m +0ms[39m
  
  2020-05-07T14:22:40.868162+00:00 app[web.1]: [32m[Nest] 4   - [39m05/07/2020, 2:22:40 PM   [38;5;3m[RoutesResolver] [39m[32mFilesController {/files}:[39m[38;5;3m +1ms[39m
  
  2020-05-07T14:22:40.868999+00:00 app[web.1]: [32m[Nest] 4   - [39m05/07/2020, 2:22:40 PM   [38;5;3m[RouterExplorer] [39m[32mMapped {/files/upload, POST} route[39m[38;5;3m +0ms[39m
  
  2020-05-07T14:22:40.873240+00:00 app[web.1]: [32m[Nest] 4   - [39m05/07/2020, 2:22:40 PM   [38;5;3m[NestApplication] [39m[32mNest application successfully started[39m[38;5;3m +5ms[39m
  
  2020-05-07T14:22:42.000000+00:00 app[api]: Build succeeded
  </code></pre>
  
  <p>It doesnt work... i cant find more details in logs, nothing more concrete. What the hell is going wrong...</p>