in reply to Using Mojolicious with NGINX Unit

I managed to eliminate the error by setting the env variable "PLACK_ENV" to anything which forces Mojolicious into PSGI mode, but Mojolicious seems to be hanging. Also I tested with Dancer2 and it works:
#!/usr/bin/perl use Dancer2; use strict; get '/' => sub { "Hello World!" }; dance;

Replies are listed 'Best First'.
Re^2: Using Mojolicious with NGINX Unit
by Veltro (Hermit) on Feb 23, 2019 at 21:20 UTC

    Is 'sub' missing in get '/' => {text => 'Hello World'};?

    edit: Never mind that, it is actually ok. Got confused there for a moment looking at a different example:

    use Mojolicious::Lite; get '/' => sub { my $c = shift; $c->render(text => "OHAI!"); }; app->start;

    From this topic that talks about PSGI: here