Heroku Cookbook
eBook - ePub

Heroku Cookbook

  1. 232 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Heroku Cookbook

About 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.

Tools to learn more effectively

Saving Books

Saving Books

Keyword Search

Keyword Search

Annotating Text

Annotating Text

Listen to it instead

Listen to it instead

Information

Heroku Cookbook


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...

Table of contents

  1. Heroku Cookbook

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Heroku Cookbook by Mike Coutermarsh in PDF and/or ePUB format, as well as other popular books in Informatique & Développement d'applications. We have over one million books available in our catalogue for you to explore.