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

Duplicating an existing application


We can make an exact copy of our current application using the heroku fork command. This copies our application code, add-ons, databases, and configuration variables over to another application. If all of our application's third-party services are Heroku add-ons, creating a fork would cover everything we need to do to get another environment up and running quickly.

How to do it...

Let's get started by opening up a terminal and navigating to the Heroku application that we'd like to fork. We'll create our forked application using the CLI by performing the following steps:

  1. To fork the current directories' application, we will use the fork command along with our new application's name:

    $ heroku fork new-applications-name
    Creating fork new-applications-name... done
    Copying slug... done
    Adding librato:development... done
    Adding newrelic:stark... done
    Adding rollbar:free... done
    Adding sendgrid:starter... done
    Adding heroku-postgresql:dev... done
    Adding pgbackups...