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

Introduction


Once it's time to transition our application from development to production, there are a few steps we'll want to take to ensure that it's prepared to serve real users.

Heroku recommends the following to run any production-level application:

  • Use the latest Heroku stack (Celedron Cedar)

  • Have more than one dyno running for increased reliability

  • If using Heroku Postgres:

    • Use a production-tier database

    • Have database backups enabled

  • Correct DNS settings (use a CNAME record)

  • SSL (HTTPS) to protect user information

  • Performance monitoring

  • Log draining

We can quickly check whether our application meets Heroku's recommendations by going to the Heroku dashboard and performing the following steps:

  1. Let's open up the dashboard from https://dashboard.heroku.com/apps.

  2. Next, we'll need to select our application.

  3. Now, we can click on Production Check in the top-right corner to see whether the current application meets Heroku's guidelines. If our application fails in any of the steps, we'll be directed to step...