title: Heroku Error H14 (No web processes running)
body: <p>Pretty sure some people encountered this problem before.</p>
  
  <p>Followed all the instructions to setup node and npm. When pushing to heroku there were no errors. But when I open the app, it shows "Application Error"</p>
  
  <pre><code>heroku ps
  </code></pre>
  
  <p>returns</p>
  
  <pre><code>Process  State      Command       
  -------  ---------  ------------  
  main.1   up for 1m  node main.js
  </code></pre>
  
  <p>while</p>
  
  <pre><code>heroku logs
  </code></pre>
  
  <p>returns</p>
  
  <pre><code>Error H14 (No web processes running) -&gt; GET mewtwo.herokuapp.com/ dyno= queue= wait= service= status=503 bytes=
  </code></pre>
  
  <p>I tried restarting the app with <code>heroku restart</code> but still get the same error. Google around and there were no other solution other than <code>heroku restart</code>. Anyone tried other methods ?</p>
  
  <hr>
  
  <p><strong>Answer:</strong> (I put it here since my rep is too low to post answer yet)</p>
  
  <p>Ok finally figured it out myself.</p>
  
  <p>Apparently in the Procfile, I declared</p>
  
  <pre><code>main: node main.js
  </code></pre>
  
  <p>but Heroku uses</p>
  
  <pre><code>web: node main.js
  </code></pre>
  
  <p>I thought the naming can be anything you want but it is actually strict, you need to use <strong>web</strong> for it to work (heroku did not emphasize this - be wary) at least for now, until I figure out why this strictness and if I can change the name. </p>