O'Reilly logo

Professional Heroku Programming by Brad Gyger, Chris Kemp

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4

Deploying Your Applications to Heroku

WHAT’S IN THIS CHAPTER?

  • Installing the Heroku Toolbelt
  • Interacting with Heroku via the command-line interface
  • The magic of git push
  • Post-deploy hooks
  • Navigating the Heroku Dashboard

This chapter covers the basics of setting up your local machine to interact with Heroku and familiarizing yourself with both Heroku’s command-line interface (CLI) and the standard Heroku Dashboard. We’ll also explore a few key concepts and tools that are made much more powerful via Heroku. These steps are important as you begin deploying apps to Heroku.

INSTALLING THE HEROKU TOOLBELT

Now that you have a fundamental understanding of how Heroku works and how to properly architect your apps for the Heroku platform, and you have determined the best way to build and iterate on your apps in the context of Heroku workflow, it is time to begin the process of setting up your local environment for Heroku use so that you can begin the deployment process.

The first time you interact with the Heroku platform to create or deploy apps, you’ll need to install the Heroku Toolbelt (https://toolbelt.heroku.com/). To install the Toolbelt, simply download the appropriate package (available for Windows, Mac OS, and Linux). Once the download completes, run the installer, and you are ready to interact with Heroku. The Heroku Toolbelt consists of the following:

  • Git
  • Foreman
  • The Heroku client

It’s important to note the following:

  • Heroku has bundled these components for Windows, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required