0

Context: Creating multiple users on a single server, each of which will have its copy of an application and own database. To be server by nginx

configuration /etc/nginx/conf.d/mod-http-passenger.conf requires that the default set-up be modified so that it points to the deploying user

### Begin automatically installed Phusion Passenger config snippet ###
passenger_root /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini;
# passenger_ruby /usr/bin/passenger_free_ruby;
passenger_ruby /home/deploying_user/.rbenv/shims/ruby;

But this file is a server wide configuration belonging to root, thus shared between users. The attempts to date have the same versions of rbenv, ruby & the application installing and running for each user - which should be the normal production environment.

So the passenger pointers & shims are apparently OK; preliminary tests do not indicate any issues. Still, this is not an ideal situation.

How can mod-http-passenger.conf be modified to allow pointing to each deployed user?

Jerome
  • 207
  • 1
  • 8

0 Answers0