What to set passenger_root and passenger_ruby paths when using RVM or rbenv
If you’re using Rails, Nginx, Passenger and RVM or rbenv and wondering what to set the passenger_root and passenger_ruby paths to in nginx.conf, here’s how to get them. Keep in mind, you’ll have to do this by reconfiguring Nginx if you switch from RVM to rbenv or vice-versa.
First you must install the passenger gem in your project directory:
cd to your rails project directory gem install passenger
To get the passenger_root path:
cd to your rails project directory passenger-config --root
To get the passenger_ruby path:
cd to your rails project directory rbenv which rubyWhat to set passenger_root and passenger_ruby paths when using RVM or rbenv,