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

Configuring DNS with CloudFlare


There are many ways to point a domain name to our Heroku application. Here, we will learn how to do this using CloudFlare, a popular CDN service. CloudFlare handles our Domain Name System (DNS) for us, but it also gives us some additional benefits over a typical DNS service. As CloudFlare is a CDN, it will distribute our static assets (CSS, JS, and images) across its global network, in addition to managing our DNS records. This makes loading static assets faster for users throughout the world and reduces the requests that have to be served by Heroku. This will save us money on our Heroku bill and also help when scaling our applications. This functionality is available for free with CloudFlare; more advanced options are available to paid accounts.

Getting ready

First, we'll need to sign up for a CloudFlare account. So, let's go to www.cloudflare.com and sign up.

During the sign-up process, CloudFlare will guide us through the process of transferring our domain...