title: MERN app on Heroku
body: <p>I'm trying to get mern app working on heroku. But right now even fixing of node server would be enough.</p>
  
  <p>This is what i have already done.</p>
  
  <ol>
  <li>Created app in heroku and push my project to it.</li>
  <li>Added mLab database link. (running properly on local server)</li>
  <li>put dev dependencies on the dependencies.</li>
  <li>Tried running "heroku run node server.js" through heroku CLI. Then it logs as server started on port 8080.</li>
  </ol>
  
  <p>But I cannot access the API or the web interface.
  My app url = <a href="http://travelaround.herokuapp.com" rel="nofollow noreferrer">http://travelaround.herokuapp.com</a></p>
  
  <p><strong>Please note</strong> my web application was create using <strong>create-react-app</strong>
  My Logs at heroku, </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>2017-05-14T17:17:50.113754+00:00 heroku[api.1]: Process exited with status 0
  
  2017-05-14T17:17:52.979224+00:00 heroku[api.1]: Starting process with command `nodemon server.js`
  
  2017-05-14T17:17:53.538796+00:00 heroku[api.1]: State changed from starting to up
  
  2017-05-14T17:17:55.154398+00:00 app[api.1]: [33m[nodemon] 1.11.0[39m
  
  2017-05-14T17:17:55.156364+00:00 app[api.1]: [33m[nodemon] to restart at any time, enter `rs`[39m
  
  2017-05-14T17:17:55.156522+00:00 app[api.1]: [33m[nodemon] watching: *.*[39m
  
  2017-05-14T17:17:55.157062+00:00 app[api.1]: [32m[nodemon] starting `node server.js`[39m
  
  2017-05-14T17:17:55.982045+00:00 app[api.1]: Database connection Established at mongodb://test:asd123@ds139791.mlab.com:39791/travelaround
  
  2017-05-14T17:17:56.008148+00:00 app[api.1]: api running on port 3000
  
  2017-05-15T14:22:19.692618+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=travelaround.herokuapp.com request_id=b46a031e-db9d-4cac-93fa-ffd73f51e5f3 fwd="93.65.70.107" dyno= connect= service= status=503 bytes= protocol=http
  
  2017-05-15T14:22:20.297803+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=travelaround.herokuapp.com request_id=9ca4977c-b45e-4f3e-b98a-1034855e8c4f fwd="93.65.70.107" dyno= connect= service= status=503 bytes= protocol=http</code></pre>
  </div>
  </div>
  
  <a href="https://i.stack.imgur.com/QAR70.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QAR70.png" alt="Resources Tab Screen Shot"></a></p>