I think a lot of guys here use rails with jruby.
How do you create an application?
Simply with
jruby -S rails new myapp -m http://jruby.org
or
rails new myapp -m
https://raw.github.com/RailsApps/rails-composer/master/composer.rb
I think a lot of guys here use rails with jruby.
How do you create an application?
Simply with
jruby -S rails new myapp -m http://jruby.org
or
rails new myapp -m
https://raw.github.com/RailsApps/rails-composer/master/composer.rb
On Thu, Jul 18, 2013 at 9:00 PM, Mauro S. [email protected] wrote:
Unless I missed your point, this is a rails question, not a jruby
question:
I suggest you ask it to the right mailing list.
Hi Mauro, you simply create your new app - no special setting should be
necessary.
Rails core should detect that you’re on JRuby and sets-up gem
‘activerecord-jdbc-adapter’ (and rhino as well)
or if you’re using a built-in supported DB such as MySQL … than sets
up
gem ‘activerecord-jdbcmysql-adapter’ in your Gemfile.
You can safely create an app from MRI and than simply add
gem ‘activerecord-jdbcmysql-adapter’, platform: :jruby
gem ‘therubythino’, platform: :jruby
and maybe change a few MRI specific such as :
gem ‘mysql2’, platform: :ruby
…
gem ‘therubyracer’, platform: :ruby
and it should all work under both JRuby as well as MRI.
There’s only one catch for AR-JDBC adapter - 1.3.0 is in the making and
latest stable (1.2.9) does not officialy support Rails 4.x … you can
use
a beta or master for now.
Hope it helps, K.
On Fri, Jul 19, 2013 at 10:36 AM, Christian MICHON <
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs