Skip to content

Commit

Permalink
no need to set the port so late
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 30, 2015
1 parent dcf6fde commit 642ff15
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Mojo/Server/Hypnotoad.pm
Expand Up @@ -10,7 +10,7 @@ use Mojo::Server::Prefork;
use Mojo::Util qw(steady_time);
use Scalar::Util 'weaken';

has prefork => sub { Mojo::Server::Prefork->new };
has prefork => sub { Mojo::Server::Prefork->new(listen => ['http://*:8080']) };
has upgrade_timeout => 60;

sub configure {
Expand All @@ -19,7 +19,6 @@ sub configure {
# Hypnotoad settings
my $prefork = $self->prefork;
my $c = $prefork->app->config($name) || {};
$c->{listen} ||= ['http://*:8080'];
$self->upgrade_timeout($c->{upgrade_timeout}) if $c->{upgrade_timeout};

# Prefork settings
Expand Down

0 comments on commit 642ff15

Please sign in to comment.