Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 71986dd267
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (16 sloc) 0.903 kB

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)
Jump to Line
Something went wrong with that request. Please try again.