0

I'm trying to run a Ruby on Rails application on Heroku with jruby in 2.0 mode.

My gemfile contains

ruby '2.0.0', engine: "jruby", engine_version: "1.7.18"

and it works locally if I set jruby to run in 2.0 mode with an env variable, eg:

JRUBY_OPTS=--2.0 bundle install

without, I get the usual version mismatch error:

bundle install
Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0

The question:

How can I make jruby run in 2.0 mode without env variables? How can I make it the default?

Should I set them in the Procfile? in the binstubbed executables under app_root/bin/?

tompave
  • 11,952
  • 7
  • 37
  • 63

0 Answers0