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 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.