Documentation: Multiple Ruby Version Modules
I use specific ruby version for the project installed with rbenv under restricted user environment: /home/user/
how to config unit to use this specific ruby instead of system one?
Good morning @amg-web,
The ruby version is always bound to the ruby language module. If you need multiple ruby versions at the same time you need to build the ruby module from source according to the ruby version.
http://unit.nginx.org/howto/source/#modules-ruby
What ruby version are you using? Let me know if you need any more assistance.
@tippexs Thanks for info. A little complicated approach, isn't it?
Can you point me to full working config with configured domain name, TLS, certificates and redirects http->https ?
some other tools allows to select desired ruby version by simple line in a config (eg. passenger, same with node and python)
@amg-web Sorry for my late response. The approach is not totally down to Unit as Unit need the corresponding Ruby version on your system to make the Module work. As said you can use something like rvm to install the ruby versions you need and build the language modules as described in our documentation.
https://unit.nginx.org/howto/source/#modules-ruby
We are working on a documentation about „How to use multi Language Version Modules on a single instance“. Will rename this issue and tag it for documentation.