O'Reilly logo

Heroku Cookbook by Mike Coutermarsh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Scaling dynos and workers

Imagine if we could scale up our applications from our company chatroom? Or maybe even from our own custom admin panel? This is possible by integrating with the Heroku API. In this recipe, we'll be introduced to managing processes with the Platform API gem. This will give us the start we need to write our own code to handle scaling our Heroku applications.

Note

Be sure to complete the previous recipe before attempting this one.

How to do it…

Let's get started by opening up a terminal and navigating to our heroku-api-examples directory. Then, we can perform the following steps:

  1. We can start by launching a console session to get familiar with the app commands:
    $ ruby console.rb
    
  2. Now that we have a console session running, let's ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required