| Server IP : 212.114.33.6 / Your IP : 216.73.217.30 Web Server : Apache System : Linux ger18 6.12.94+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.94-1 (2026-06-20) x86_64 User : immotrainerde ( 2287) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/bin/ |
Upload File : |
#!/usr/bin/perl
use Mojo::Base -strict;
use Mojo::Server::Hypnotoad;
use Mojo::Util qw(extract_usage getopt);
getopt
'f|foreground' => \$ENV{HYPNOTOAD_FOREGROUND},
'h|help' => \my $help,
's|stop' => \$ENV{HYPNOTOAD_STOP},
't|test' => \$ENV{HYPNOTOAD_TEST};
die extract_usage if $help || !(my $app = shift || $ENV{HYPNOTOAD_APP});
Mojo::Server::Hypnotoad->new->run($app);
=encoding utf8
=head1 NAME
hypnotoad - Hypnotoad HTTP and WebSocket server
=head1 SYNOPSIS
Usage: hypnotoad [OPTIONS] [APPLICATION]
hypnotoad ./script/my_app
hypnotoad ./myapp.pl
hypnotoad -f ./myapp.pl
Options:
-f, --foreground Keep manager process in foreground
-h, --help Show this message
-s, --stop Stop server gracefully
-t, --test Test application and exit
=head1 DESCRIPTION
Start L<Mojolicious> and L<Mojolicious::Lite> applications with the L<Hypnotoad|Mojo::Server::Hypnotoad> web server.
=head1 SEE ALSO
L<Mojolicious>, L<Mojolicious::Guides>, L<https://mojolicious.org>.
=cut