Book Image

Heroku Cookbook

By : Mike Coutermarsh
Book Image

Heroku Cookbook

By: Mike Coutermarsh

Overview of this book

Heroku is a Platform as a Service that enables developers to rapidly deploy and scale their web applications. Heroku is designed for developer happiness, freeing developers from doing system administrative tasks such as configuring servers and setting up load balancers. Developers are able to focus on what they do best, building web applications, while leaving the details of deployment and scaling to the experts at Heroku. This practical guide is packed with step-by-step solutions to problems faced by every production-level web application hosted on Heroku. You'll quickly get comfortable with managing your Heroku applications from the command line and then learn everything you need to know to deploy and administer production-level web applications.
Table of Contents (17 chapters)
Heroku Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Deploying with Heroku labs – Pipeline


Each time we deploy our code to Heroku, a new slug is created; this slug contains all of our application code and assets. Using Heroku's Pipeline, we can promote this slug to another environment without having to go through the slug-compilation process again. This ensures that the slug that we tested and verified in our staging environment is identical to what we push to our production environment. With the Pipeline, we can compare the commits between our applications so that we know exactly what changes we are deploying. It's amazingly useful; here, we will learn how to set it up and use it.

How to do it…

To get started, let's open up a terminal and navigate to our Heroku project by performing the following steps:

  1. First, we need to install the Heroku Pipeline CLI plugin:

    $ heroku plugins:install [email protected]:heroku/heroku-pipeline.git
    Installing heroku-pipeline... done
    

    Note

    Heroku Pipeline's GitHub repository at https://github.com/heroku/heroku-pipeline...