-
-
Save meaganewaller/4dc0acb159296065b61f to your computer and use it in GitHub Desktop.
Launching a JRuby Application with Heroku
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby '1.9.3', engine: 'jruby', engine_version: '1.7.6' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 | |
# ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby '1.9.3', :engine => 'jruby', :engine_version => '1.7.6' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'puma' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git add . | |
$ git commit -m "JRuby on Heroku" | |
$ heroku create --remote jruby-heroku |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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