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

Enabling custom maintenance and error pages


Heroku has two different error pages that it will display to our users when things go wrong. The first is a general error page for when our application is unable to respond to a request. The second is the maintenance page that informs our users that our application is temporarily down and under maintenance. By default, both of these pages are very plain, and the messages they display are very general. It's easy for us to customize each of these pages and display something that we have more control over. Here, we will learn how to customize them.

Note

Here are Heroku's default error pages:

Getting ready

We need to have our error and maintenance pages hosted somewhere that's web accessible and is outside Heroku. The recommended approach is uploading them to Amazon S3; for step...