<div dir="ltr">I see. That should work, thanks.<div>Now, doesn't this compile-time list of available runtimes limit the "dynamic" nature of the service?</div><div>e.g. I'm thinking in the common scenario of upgrading one of the runtimes because of a security update.</div><div>This involves starting a new process and move all of its apps & listeners, right?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El mar., 29 de ene. de 2019 a la(s) 13:04, Valentin V. Bartenev (<a href="mailto:vbart@nginx.com">vbart@nginx.com</a>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tuesday 29 January 2019 12:30:24 <a href="mailto:megatux@gmail.com" target="_blank">megatux@gmail.com</a> wrote:<br>
> Hi,<br>
>   I'm having trouble setting a new Ruby app. I'm unable to use a Ruby<br>
> different than the system one.<br>
> <br>
> My idea is to have several rack web apps on different ports (or URIs if<br>
> possible) but using a Ruby installation from a version manager, like rbenv,<br>
> RVM, asdf.<br>
> <br>
> I have both Unit .deb installation and Docker installation.<br>
> <br>
> So, to make it simple, let's say I want 2 web apps, a Rails app and a<br>
> Sinatra app, each one using a different Ruby installation within the "asdf"<br>
> language version manager (it could be same user or not).  Is it possible?<br>
> Then, if the two apps are APIs, can I migrate _progressively_ different<br>
> endpoints?<br>
> <br>
> Thanks a lot.<br>
> <br>
<br>
Because of perfomance reasons Unit doesn't use command-line interptreter<br>
directly from a version manager (that would be unallowable slow).<br>
<br>
In order to use Ruby from a version manager, you have to compile a Unit<br>
module with this particular Ruby interpreter.<br>
<br>
See here for details on compiling your own Ruby module from sources:<br>
<a href="http://unit.nginx.org/installation/#configuring-ruby" rel="noreferrer" target="_blank">http://unit.nginx.org/installation/#configuring-ruby</a><br>
<br>
Having modules of each version you will be able to switch between them<br>
via control API socket on a per application basis.<br>
<br>
See here for the "type" option details:<br>
<a href="http://unit.nginx.org/configuration/#application-objects" rel="noreferrer" target="_blank">http://unit.nginx.org/configuration/#application-objects</a><br>
<br>
  wbr, Valentin V. Bartenev<br>
<br>
_______________________________________________<br>
unit mailing list<br>
<a href="mailto:unit@nginx.org" target="_blank">unit@nginx.org</a><br>
<a href="https://mailman.nginx.org/mailman/listinfo/unit" rel="noreferrer" target="_blank">https://mailman.nginx.org/mailman/listinfo/unit</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>-----------------------------------------------------<br>   .^. In an open world, who needs windows or gates?<br>   /V\   <a href="http://www.megatux.me/" target="_blank">Cristian Molina</a><br>  //  \\   GNU/Linux User #73047, Ubuntu User # 14733<br> /( _ )\       Merlo, San Luis - Argentina   <br>  ^^ ^^ ---------------------------------------------</div></div></div></div></div>