I have a script written with jRuby and I need this script to be executed from rails app (which runs on MRI ruby). I have code like this:
class User < ActiveRecord::Base
def run_script!
system "jruby /path/to/my/script/script.rb #{id}"
end
end
and it works in development! But on Ubuntu production server it returns nil
and I have no idea how to make it work.