Running anything

You can pretty much run anything on the Heroku platform. If you need additional features for your web app, you can use the supported add-ons and consume the add-on services from your app and provide newer capabilities such as monitoring (of the app) or data storage in your application. The possibilities are endless.

Let's say you want to swap the web server and worker system used for your Rails application and use Unicorn and Resque respectively instead.

You just need to change the Gemfile and Procfile, and that's it. You are ready to go!

The Gemfile changes are as follows:

gem 'unicorn'
gem 'resque'
gem 'resque-scheduler'

The Procfile changes are as follows:

web:     bundle exec unicorn -p $PORT -c ./config/unicorn.rb
worker: bundle ...

Get Heroku Cloud Application Development 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.