You can use rbenv, nginx and passenger. Some of them went for a system-wide installation. http://blakewilliams.me/blog/4-system-wide-rbenv-install
I am currently testing my development environment, so if you installed rbenv and you have the correct rbenv init in .bashrc :
gem install passenger rbenv rehash sudo bash -c "source ~/.bashrc && passenger-install-nginx-module"
You must gem install passenger to get gaskets. Performing a bundle install to install a passenger will not give you this data.
Finally:
passenger-config
will give you your passenger_root path and:
rbenv which ruby
your way passenger_ruby .
The passenger gasket indicates the executable, but passenger_root should be the path to the folder. I tried using a ruby pad, but it does not work. I have not yet delved into why.
By the way, I have the verb nokogiri in my gemfile. Oh, also, if you have .rvmrc and / or config/setup_load_paths.rb , it should be safe to remove them as a passenger autoload kit.
I still need to do a little more tests on this, but so far so good.
Philt source share