Need to specify server in arguments because HTTP::Server::PSGI can't work
asynchronously, but this code doesn't work too with such command:
*plackup 1.pl -s Twiggy*
понедельник, 13 апреля 2015 г., 11:38:19 UTC+5 пользователь Alexey Stavrov
написал:
>
> Can the Mojolicious work asynchronously when it deploy with Plack?
>
> I attempt to run such application
>
> #!/usr/bin/perl
>
>
> use strict;
> use warnings FATAL => 'all';
>
>
> use v5.10;
>
>
> use Mojolicious::Lite;
>
>
> get '/' => sub {
> my $c = shift->render_later;
> $c->ua->get('http://google.com' => sub {
> $c->render(text => 'Ok');
> });
> };
>
>
> app->start;
>
>
> with such command *plackup 1.pl <http://1.pl>*
>
>
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.