I’m just about to set up a VPS that will host multiple RoR sites. I’m planning to do this using nginx as my server and passenger for deployment. I’m wondering how I can use RVM to have multiple gemsets with multiple RoR sites, is this possible? If it is, how should I install it? I’ve read that it’s going to be a problem when you install it with just bash < <(curl -s https://rvm.beginrescueend.com/install/rvm. I’ve seen it mentioned a couple of times in this article about how it won’t allow multiple gemsets.
Any help would be very much appreciated. Any articles or tutorials on setting up RoR on VPS using nginx, passenger and rvm would be great. Thanks!
RVM can be installed in 3 modes (described here: https://rvm.io/rvm/install/) all of them are suitable for hosting multiple rails sites with different configuration.
There is very good description for such setup here: https://rvm.io/deployment/best-practices/
For using passenger you can use this documentation https://rvm.io/integration/passenger/ – it will work nice with multiuser mode and mixed mode … nto sure about per user installations in this case.