--path=<path> The location to install the gems in the bundle to. This defaults to the gem home, which is the location that gem install installs gems to. This means that, by default, gems installed without a --path setting will show up in gem list. This setting is a
casiano@exthost2:~/sinatra/sinatra-up-and-running-blog (master)$ bundle install --path /home/casiano/gems Fetching gem metadata from https://rubygems.org/.......... Fetching gem metadata from https://rubygems.org/.. Installing daemons (1.1.9) Installing eventmachine (1.0.3) Installing rack (1.5.2) Installing rack-cache (1.2) Installing rack-protection (1.5.1) Installing rdiscount (2.1.7) Installing redcarpet (3.0.0) Installing tilt (1.4.1) Installing sinatra (1.4.4) Installing thin (1.6.0) Using bundler (1.3.5) Your bundle is complete! It was installed into /home/casiano/gems
Arrancamos el servidor:
casiano@exthost2:~/sinatra/sinatra-up-and-running-blog (master)$ rackup -Ilib -I/home/casiano/gems/ruby/2.0.0/gems/ -s thin -p 4567 cache: [GET /] miss, store 10.213.5.185 - - [28/Oct/2013 12:24:29] "GET / HTTP/1.1" 200 3892 5.6308 cache: [GET /css/blog.css] miss, store 10.213.5.185 - - [28/Oct/2013 12:24:29] "GET /css/blog.css HTTP/1.1" 200 375 0.0706 cache: [GET /js/jquery.timeago.js] miss, store 10.213.5.185 - - [28/Oct/2013 12:24:29] "GET /js/jquery.timeago.js HTTP/1.1" 200 4491 0.1020 cache: [GET /js/blog.js] miss, store 10.213.5.185 - - [28/Oct/2013 12:24:29] "GET /js/blog.js HTTP/1.1" 200 66 0.0427