Book Image

Heroku Cloud Application Development

By : Anubhav Hanjura
Book Image

Heroku Cloud Application Development

By: Anubhav Hanjura

Overview of this book

Table of Contents (17 chapters)
Heroku Cloud Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Running your cloud apps locally


It makes a lot of sense for cloud-based app developers to run their apps locally before pushing them to the cloud (production) environment. Doing so helps the developer understand the app characteristics and also predict other app needs (such as sizing) in the cloud environment. If the app developer follows the Twelve-Factor app (TFA) methodology recommended for Heroku web apps and keeps the development environment as close as possible to the production environment, potential issues (if any) show up during a local run of the app, and that gives an opportunity to fix issues before they hit production.

In this context, Foreman is the tool of choice for most Heroku app developers. Foreman is a utility that comes bundled with the Heroku client software (https://toolbelt.heroku.com). It helps run your Procfile-based Heroku apps in the local environment.

Note

A Procfile, as you know already, is a configuration file in which you name your process type and instruct Heroku...