Skip to content

Instantly share code, notes, and snippets.

@kares
Created March 7, 2014 09:36
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 kares/9408476 to your computer and use it in GitHub Desktop.
Save kares/9408476 to your computer and use it in GitHub Desktop.
Gemfile header for using JRuby (on Heroku) as well as MRI locally (first line to override RVM's parsing)
#ruby=1.9.3
# Gemfile header for using JRuby (on Heroku) as well as MRI locally
source 'https://rubygems.org'
if ENV["JRUBY"] || RUBY_PLATFORM == "java"
# https://devcenter.heroku.com/articles/ruby-support#ruby-versions
ruby '1.9.3', engine: 'jruby', engine_version: '1.7.10'
else
ruby '1.9.3'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment