rack - Ruby path makes require impossible -


i beginner in ruby, , have problem using ruby script, work on computer, on server.

my problem don't become require 'rack/cors' , require 'grape'

on computer works, without using trick. on server ruby installed on home directory. became require cors using require '../ruby/gems/gems/rack-cors-0.2.7/lib/rack/cors', feels it's dirty know if there better way this.

i did not became use rubylib env variable or -i of ruby.

my final goal use rack, using rackup launch server.

if using bundler, none of issue.

it allows install gems arbitrary locations, more importantly, loads them whatever location you've installed them in automatically.


Comments