Hi,
I'm having trouble setting a new Ruby app. I'm unable to use a Ruby
different than the system one.
My idea is to have several rack web apps on different ports (or URIs if
possible) but using a Ruby installation from a version manager, like rbenv,
RVM, asdf.
I have both Unit .deb installation and Docker installation.
So, to make it simple, let's say I want 2 web apps, a Rails app and a
Sinatra app, each one using a different Ruby installation within the "asdf"
language version manager (it could be same user or not). Is it possible?
Then, if the two apps are APIs, can I migrate _progressively_ different
endpoints?
Thanks a lot.
--
-----------------------------------------------------
.^. In an open world, who needs windows or gates?
/V\ Cristian Molina <http://www.megatux.me/>
// \\ GNU/Linux User #73047, Ubuntu User # 14733
/( _ )\ Merlo, San Luis - Argentina
^^ ^^ ---------------------------------------------
Hello
I'm using Mojolicious::Lite, a Perl framework, which should support PSGI.
The smallest possible app, however, does not run
===
#!/usr/bin/env perl
use Mojolicious::Lite;
get '/' => sub {
my $c = shift;
$c->render(text=>'hello');
};
app->start;
===
2019/01/23 09:41:23.029 [error] 26579#26579 [unit] #4: PSGI: Failed to
run Perl Application:
Undefined subroutine &main::1 called.
plackup runs it Ok, so there is some incompatibility, which I do not
know how to trace.
What kind of error in framework can it be and how to trace it?
Alex