Skip to content
An example of a Rack application for dpeloyment on JRuby, Trinidad and Heroku
Find file
Pull request Compare This branch is 2 commits behind jkutner:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
script
Jemfile
Jemfile.lock
Procfile
README.md
config.ru
pom.xml

README.md

JRuby, Trinidad and Heroku

This is an example of a Rack application that can be deployed to Heroku on JRuby and Trinidad.

Getting Started

To deploy this application you'll need to do the following:

$ git clone git://github.com/jkutner/jruby-trinidad-heroku.git
$ BUNDLER_GEMFILE=Jemfile bundle
$ gem install heroku
$ heroku create --stack cedar --buildpack http://github.com/heroku/heroku-buildpack-java
$ git push heroku master

Anatomy

The most important parts of this project are:

  • pom.xml - this is a Maven config file that can be copied as is (in most cases).
  • Jemfile - a renamed Gemfile so that Heroku doesn't think this is an MRI app.
  • Procfile - a Heroku config file with instructions for running the app.
  • script/jruby - a modified jruby executable for the Heroku platform.
  • config.ru - the application itself (can be replaced with any Rack app)
Something went wrong with that request. Please try again.