cannot load such file -- bundler/setup (LoadError) || deploy on Ubuntu 12.04 x32
You sure have some PATH issues. Inside the /etc/nginx/nginx.conf
, for passenger, you should be pointing to the ruby version where bundler is installed.
passenger_root /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini;passenger_ruby /home/thomas/.rvm/wrappers/default/ruby;
You can check this with the command
$ which ruby
The output of that command should be the one you should enter for passenger_ruby
If you haven't installed bundler yet go ahead and run gem install bundler
Also make sure that you are setting the environment variable in your server block:
server { listen 80 default; server_name blog.wall2flower.me; root /var/www/blog/current/public; passenger_enabled on;}
You need to genarate binstubs
to fix the problem:
bundle install --binstubs