Procfile - declare commands to be run by Heroku dynosΒΆ

See Per, comments are allowed.

Use gunicorn to host the webapp. The options used:

Tell Heroku we’re running a web server, so we can have access to HTTP traffic. Only web process type has this access – see the note just before
–chdir build/Flask
Run the application from the Flask directory; see
–log-file -
Report log output to stdout? The manual’s not very helpful. See –log-file -.
–error-logfile -
Report errors to stderr? Again, isn’t terribly clear. Without this option, Flask tracebacks don’t appear.
Per, the WSGI callable for the app is
web: gunicorn --chdir build/Flask --log-file - --error-logfile - book_webapp:app