Git Product home page Git Product logo

Comments (13)

mrrooijen avatar mrrooijen commented on July 25, 2024

Can you even compile Rubinius on Heroku by defining it in the Gemfile? I would love to use Rubinius 2.0 on Heroku but I cannot find any resources online that explains how to get it done. Anyone care to share the secret?

from heroku-buildpack-ruby.

benedikt avatar benedikt commented on July 25, 2024

I tried to figure it out by looking at the ruby build pack and I believe it should work by defining it in the Gemfile like you did. I'm having the same issue, though... :)

from heroku-buildpack-ruby.

mrrooijen avatar mrrooijen commented on July 25, 2024

Yeah. Though I tried to use a different version to see if it occurs with all of them, and it does. However, I wonder if I'm doing it right since this is what it looks like when trying to use for example rbx-2.0.0dev-20120123-1.9:

ruby "1.9.3", :engine => "rbx", :engine_version => "2.0.0dev-20120123-1.9"

However, with this in place, it will look for this:

ruby-1.9.3-rbx-2.0.0dev-20120123-1.9

Which does not match rbx-2.0.0dev-20120123-1.9 at all, due to the ruby-1.9.3 prefix you always get when using the ruby method in the Gemfile.

from heroku-buildpack-ruby.

mrrooijen avatar mrrooijen commented on July 25, 2024

Just generated a quick dummy app with JRuby and it seems to work fine.

Gemfile:

ruby "1.9.3", :engine => "jruby", :engine_version => "1.7.0.preview1"

Heroku Deployment Process:

-----> Heroku receiving push
-----> Ruby/Rails app detected
-----> Using Ruby version: ruby-1.9.3-jruby-1.7.0.preview1
-----> Installing JVM: openjdk7-latest
-----> Installing dependencies using Bundler version 1.2.0

No problem. So it's likely a bug in the Ruby Buildpack where it cannot install Rubinius like it installs JRuby.

from heroku-buildpack-ruby.

benedikt avatar benedikt commented on July 25, 2024

I made two simple changes to the build pack and now it at least installs Rubinius. I'm running into apparently bundler related issues now, though...

benedikt/heroku-buildpack-ruby@heroku:master...benedikt:master

from heroku-buildpack-ruby.

hone avatar hone commented on July 25, 2024

@benedikt yepp, those are the changes I have locally to get it to work. I still need to figure out something better for the binstub stuff.

from heroku-buildpack-ruby.

mrrooijen avatar mrrooijen commented on July 25, 2024

@benedikt good stuff man. I'll check it out soon. With the release of Ruby 2.0.0-preview1, Rubinius 2.0.0-rc1 and JRuby 1.7.0 I'm looking forward to leveraging these excellent new Ruby implementation versions on Heroku.

from heroku-buildpack-ruby.

mrrooijen avatar mrrooijen commented on July 25, 2024

@hone any idea when Heroku will add support for the RC1 of Rubinius that just recently came out with support for 1.9 and 2.0 mode (as well as JRuby 1.7.0)?

Cheers

from heroku-buildpack-ruby.

hone avatar hone commented on July 25, 2024

working on rbx stuff with @brixen, but I don't have an exact timeline, but I would imagine in the next month or so depending on my bandwidth.

from heroku-buildpack-ruby.

mrrooijen avatar mrrooijen commented on July 25, 2024

@hone awesome! I got his message on Twitter regarding this. Looking forward to it. Thanks a bunch! :)

from heroku-buildpack-ruby.

hone avatar hone commented on July 25, 2024

#52 needs to be fixed first.

from heroku-buildpack-ruby.

benedikt avatar benedikt commented on July 25, 2024

Looks like this is working now with the default buildpack. I just deployed an application using this in my Gemfile:

ruby '1.9.3', :engine => 'rbx', :engine_version => '2.0.0dev'

Using heroku run console I'm able to get this:

irb(main):001:0> RUBY_DESCRIPTION
=> "rubinius 2.0.0dev (1.9.3 release yyyy-mm-dd JI) [x86_64-unknown-linux-gnu]"

Thanks to whoever fixed it :-)

from heroku-buildpack-ruby.

schneems avatar schneems commented on July 25, 2024

Looks like it works, closing.

from heroku-buildpack-ruby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.