title: Flask application deployed to Heroku returns Application Error
body: <p>I'm having trouble with heroku not successfully running my app. I have 3 key files:</p>
  
  <ol>
  <li>A python file with the core engine. </li>
  <li>A python file that calls the first python file and runs Flask to <code>render_template</code> into <code>index.html</code>, and </li>
  <li>An index.html file that uses the data generated
  from the core engine (via the second python file) to render the
  page.</li>
  </ol>
  
  <p>I recorded all the dependencies needed in a requirements.txt file, and <a href="https://github.com/mjhea0/flask-boilerplate/blob/master/README.md" rel="nofollow">followed the "Deploying to Heroku" instructions on this boilerplate page</a>.</p>
  
  <p>After doing the <code>git push heroku master</code> I got an Application Error on the heroku app.
  Here's the heroku logs dump:</p>
  
  <pre><code>(venv)Bobs-MacBook-Pro:headline master$ heroku logs
  2014-09-15T08:04:42.500102+00:00 heroku[api]: Enable Logplex by xxx@gmail.com
  2014-09-15T08:04:42.500102+00:00 heroku[api]: Release v2 created by xxx@gmail.com
  2014-09-15T08:10:32+00:00 heroku[slug-compiler]: Slug compilation started
  2014-09-15T08:11:21+00:00 heroku[slug-compiler]: Slug compilation finished
  2014-09-15T08:11:21.409088+00:00 heroku[api]: Deploy fa8d344 by xxx@gmail.com
  2014-09-15T08:11:21.409184+00:00 heroku[api]: Release v3 created by xxx@gmail.com
  2014-09-15T08:11:23.833224+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=headlyneme.herokuapp.com request_id=6ea6633a-4bfa-4cfa-9345-ac77f570e6a9 fwd="54.82.116.215" dyno= connect= service= status=503 bytes=
  2014-09-15T08:11:55.722627+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=headlyneme.herokuapp.com request_id=ed7d46ba-cef2-4aef-bbe6-49e8244cb04c fwd="24.130.57.252" dyno= connect= service= status=503 bytes=
  2014-09-15T08:11:56.045572+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=headlyneme.herokuapp.com request_id=08d43fc9-977a-4c89-86a3-267224fbb5a7 fwd="24.130.57.252" dyno= connect= service= status=503 bytes=
  </code></pre>
  
  <p>What am I doing wrong? I've run this locally on my Mac using <code>app.run(debug=True)</code> without any problems, <a href="http://i.imgur.com/THmIBWL.png" rel="nofollow">as seen here</a>. I'm guessing something's wrong in the sequence the python files are running? </p>