Deploying on Heroku

Heroku is the first of the Platform as a Service (PaaS) providers that this chapter will cover. PaaS is a service given to web developers that allows them to host their websites on a platform that is controlled and maintained by someone else. At the cost of freedom, you gain assurances that your website will automatically scale with the number of users your site has with no extra work on your part. Using PaaS also tends to be more expensive than running your own servers.

Heroku is PaaS that aims to be easy to use for web developers by hooking into already existing tools and not requiring any large changes in the app. Heroku works by reading the file named Procfile, which contains commands that your Heroku dyno basically a virtual ...

Get Mastering Flask now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.