Table of Contents
Heroku Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Conventions
Reader feedback
Customer support
Downloading the color images of this book
Errata
Piracy
Questions
1. Getting Started with Heroku
Introduction
Installing the Heroku Toolbelt
Getting ready
How to do it...
How it worksā¦
Authentication
See also
Introducing version control with Git
How to do itā¦
How it worksā¦
There's moreā¦
See also
Deploying a Rails application to Heroku
Getting ready
How to do itā¦
How it worksā¦
The Procfile
Environment variables
The build process
See also
Deploying a Node.js application to Heroku
How to do itā¦
How it worksā¦
The ephemeral filesystem
See also
Introducing dynos, workers, and scaling
What's a dyno?
What's a worker?
Process sizes
How to do it...
How it worksā¦
Dynos
Workers
One-time dynos
See also
2. Managing Heroku from the Command Line
Introduction
Viewing application logs
How to do itā¦
How it works
See also
Searching logs
Getting ready
How to do itā¦
How it worksā¦
See also
Installing add-ons
How to do it...
How it worksā¦
See also
Managing environment variables
How to do it...
How it worksā¦
See also
Enabling the maintenance page
How to do it...
See also
Managing releases and rolling back
How to do it...
How it worksā¦
Running one-off tasks and dynos
How to do it...
How it worksā¦
Managing SSH keys
How to do itā¦
How it worksā¦
Sharing and collaboration
How to do itā¦
How it worksā¦
See also
Monitoring load average and memory usage
How to do itā¦
How it worksā¦
See also
3. Setting Up a Staging Environment
Introduction
Duplicating an existing application
How to do it...
How it works...
Add-ons
Config variables
Database
See also
Managing git remotes
How to do it...
How it works...
Password protection for a Rails app
Getting ready
How to do itā¦
How it worksā¦
See also
Deploying with Heroku labs ā Pipeline
How to do itā¦
How it worksā¦
See also
Deploying from tags
How to do itā¦
How it worksā¦
See also
Continuous integration and deployment with Travis CI
Getting ready
How to do itā¦
How it worksā¦
Debugging
See also
4. Production-ready with Heroku
Introduction
Managing domains from the command line
How to do itā¦
How it worksā¦
See also
Configuring DNS with CloudFlare
Getting ready
How to do it...
How it works...
Setting up SSL with CloudFlare
Getting ready
How to do itā¦
How it worksā¦
Enabling preboot for seamless deploys
How to do it...
How it works...
Enabling custom maintenance and error pages
Getting ready
How to do itā¦
How it worksā¦
Setting up a status page
How to do itā¦
How it worksā¦
See also
Setting up log draining with LogEntries
How to do itā¦
How it worksā¦
See also
5. Error Monitoring and Logging Tools
Introduction
Checking Heroku's status
How to do itā¦
How it worksā¦
Adjusting Rails's logging level
Getting ready
How to do itā¦
How it worksā¦
See also
Storing historical logs with PaperTrail
How to do itā¦
How it worksā¦
See also
Monitoring for 404 and 500 errors with PaperTrail
How to do itā¦
How it worksā¦
See also
Logging slow queries with PaperTrail
How to do itā¦
How it worksā¦
See also
Monitoring uptime with Pingdom
How to do itā¦
How it worksā¦
See also
Logging errors with Rollbar
Getting ready
How to do itā¦
How it worksā¦
See also
6. Load Testing a Heroku Application
Introduction
Monitoring dyno performance with Librato
How to do itā¦
How it worksā¦
See also
Monitoring application performance with New Relic
How to do itā¦
How it worksā¦
See also
Learning to load test with Siege
Getting ready
How to do itā¦
How it worksā¦
See also
Configuring complex load tests with Siege
How to do itā¦
How it worksā¦
Load testing from the cloud with Blitz.io
Getting ready
How to do itā¦
How it worksā¦
See also
Testing real-user scenarios with Load Impact
Getting ready
How to do itā¦
How it worksā¦
See also
7. Optimizing Ruby Server Performance on Heroku
Introduction
Setting up and running Unicorn on Heroku
How to do itā¦
How it works
See also
Monitoring and tuning Unicorn's memory usage
How to do itā¦
How it worksā¦
See also
Tuning Unicorn's backlog for Heroku
How to do itā¦
How it worksā¦
See also
Timing out long requests with Unicorn
How to do itā¦
How it worksā¦
See also
Setting up and running Puma on Heroku
How to do itā¦
How it...