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

Logging errors with Rollbar


All production applications should have some form of error logging. Whenever our application fails to serve a user's request, we'll want to know as much information as possible about the failure. Using an exception service, we can log detailed information about each error and track how frequently it occurs. Having all of this at our fingertips makes it easy to prioritize which errors to fix. In this recipe, we will learn how to install Rollbar on a Rails application.

Note

Rollbar supports almost every language and framework. For specific instructions on other languages, take a look at their documentation at https://rollbar.com/docs/.

Getting ready

You'll need a Ruby on Rails application running on Heroku to complete this recipe. If you don't have one, take a look at Chapter 1, Getting Started with Heroku, for instructions on how to set one up.

How to do it…

To start, let's launch a terminal and navigate to a directory with an existing Rails application. Then, perform...