Last Updated: August 24, 2017
·
697
· sweetdub

Using rbenv and rbenv-gemset with Passenger for Nginx

location @passenger {
  passenger_enabled on;
  passenger_app_env production;
  passenger_set_cgi_param GEM_PATH "/home/user/.rbenv/versions/1.8.7-p370/gemsets/myapp";
}

1 Response
Add your response

If anyone else comes across this, it should be passengerenvvar instead of passengersetcgi_param. Otherwise, thanks for the tip!

over 1 year ago ·