Deploying to the Cloud

Heroku is a cloud-based platform as a service that helps you deploy, run, and manage applications written in many languages, including Ruby, Java, and JRuby. You can deploy to Heroku by pushing source code to a Git repository, by uploading precompiled binaries, or by pushing an app configured for Docker. You’ll start by deploying the stand-alone WAR file you created with Warbler directly to Heroku. This is the lightest and fastest way to get your app running in the cloud. Then you’ll deploy the Docker image you created a moment ago. Deploying a Docker image is a heavier and slower process but offers advantages of its own.

First, create a free Heroku account by visiting the Heroku website[30] and filling out a few bits ...

Get Deploying with JRuby 9k now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.