Chapter 7

Managing, Monitoring, and Scaling Your Heroku Applications

WHAT’S IN THIS CHAPTER?

  • Adding custom domains
  • Viewing logs and associated tools
  • Managing and tuning performance
  • Leveraging the Heroku API
  • Administration options

Your apps are now alive and well on the Heroku platform. All your git repos are configured; your deploys are happening at a lightning pace; and you are ready for prime time! In order to do that, however, you need to ensure that you have all the right processes and tools to go live, iterate, and scale under normal production and peak loads. Now that you have explored how to deploy apps, manage code and releases for each deploy, and attach additional services, this chapter covers how to apply these concepts to your apps at scale.

ADDING CUSTOM DOMAINS

One of the first things any production web app requires is a custom, or vanity, domain. You’ve already been exposed to the Heroku subdomains that are assigned as part of the deployment process (either haiku-name-##.herokuapp.com or mycoolapp.heroku.com). However, most apps will require either a custom, fully qualified domain (www.mycompanyapp.com) or subdomain (coolapp1.mycompany.com). You can easily add or remove domains from the Heroku Dashboard. Simply enter into the application’s detail view and click SettingsZ. Scroll down to the Domains section and enter in your custom domain as shown in Figure 7-1.

You can also add and remove domains via the command line, as follows:

heroku domains:add ...

Get Professional Heroku Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.