Created
June 9, 2011 09:25
-
-
Save sharifulin/1016409 to your computer and use it in GitHub Desktop.
Mojolicious::Lite start params
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# сходу написал так, но завелось только на 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