Skip to content

Instantly share code, notes, and snippets.

@sharifulin
Created August 7, 2011 20:10
Show Gist options
  • Save sharifulin/1130735 to your computer and use it in GitHub Desktop.
Save sharifulin/1130735 to your computer and use it in GitHub Desktop.
Mojolicious Daemon
# сходу написал так, но завелось только на 3000 (дефолтном порту)
app->start('daemon', '--listen http://*:5000');
# затем так
app->start('daemon', listen => 'http://*:5000');
# посмотрел Mojo::Server::Daemon
app->start('daemon', listen => ['http://*:5000']);
# и даже так попробовал
app->start('daemon --listen http://*:5000');
# после открыл Mojo::Command, проследил код, нашел вызов Mojolicious::Server::Daemon и понял,
# что используется параметры как @ARGV
app->start('daemon', '--listen', 'http://*:5000');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment