Skip to content

Instantly share code, notes, and snippets.

@meaganewaller
Created January 1, 2015 02:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meaganewaller/4dc0acb159296065b61f to your computer and use it in GitHub Desktop.
Save meaganewaller/4dc0acb159296065b61f to your computer and use it in GitHub Desktop.
Launching a JRuby Application with Heroku
ruby '1.9.3', engine: 'jruby', engine_version: '1.7.6'
$ git add .
$ git commit -m "JRuby on Heroku"
$ git push heroku master
Counting objects: 11, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 1.17 KiB | 0 bytes/s, done.
Total 6 (delta 3), reused 0 (delta 0)
-----> Ruby app detected
-----> Compiling Ruby/Rack
-----> Using Ruby version: ruby-1.9.3-jruby-1.7.6
-----> Installing JVM: openjdk7-latest
-----> Installing dependencies using Bundler version 1.3.2
# ...
$ rvm get latest
$ rvm install jruby
$ rvm use jruby
$ ruby -v
jruby 1.7.6 (1.9.3p392) 2013-10-22 6004147 on Java HotSpot(TM) 64-Bit Server VM 1.7.0_45-b18 [darwin-x86_64]
ruby '1.9.3', :engine => 'jruby', :engine_version => '1.7.6'
gem 'puma'
$ git add .
$ git commit -m "JRuby on Heroku"
$ heroku create --remote jruby-heroku
$ git push jruby-heroku master
Counting objects: 11, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 1.17 KiB | 0 bytes/s, done.
Total 6 (delta 3), reused 0 (delta 0)
-----> Ruby app detected
-----> Compiling Ruby/Rack
-----> Using Ruby version: ruby-1.9.3-jruby-1.7.6
-----> Installing JVM: openjdk7-latest
-----> Installing dependencies using Bundler version 1.3.2
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment