unit icon indicating copy to clipboard operation
unit copied to clipboard

Documentation: Multiple Ruby Version Modules

Open amg-web opened this issue 3 years ago • 3 comments

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?

amg-web avatar Jun 28 '22 07:06 amg-web

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 avatar Jun 29 '22 06:06 tippexs

@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 avatar Jun 29 '22 06:06 amg-web

@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.

tippexs avatar Sep 16 '22 17:09 tippexs