diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-05-20 00:45:58 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-06-28 22:41:56 +0200 |
commit | f5a81daeeb16c6f64475f3a48b8ea5eb0ec84c9b (patch) | |
tree | 055fdfc7e03b9e6577f1f7fa833f7a29bb81ded2 /Bugzilla | |
parent | 723767dc121db1047e1803998ddbbc6c343b1064 (diff) | |
download | bugzilla-f5a81daeeb16c6f64475f3a48b8ea5eb0ec84c9b.tar.gz bugzilla-f5a81daeeb16c6f64475f3a48b8ea5eb0ec84c9b.tar.xz |
run mojolicious daemon instead of httpd
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/DaemonControl.pm | 3 | ||||
-rw-r--r-- | Bugzilla/Quantum.pm | 7 | ||||
-rw-r--r-- | Bugzilla/Quantum/Static.pm | 4 |
3 files changed, 11 insertions, 3 deletions
diff --git a/Bugzilla/DaemonControl.pm b/Bugzilla/DaemonControl.pm index 2c6df1b87..43461b5ec 100644 --- a/Bugzilla/DaemonControl.pm +++ b/Bugzilla/DaemonControl.pm @@ -103,7 +103,8 @@ sub run_httpd { # we have to setsid() to make a new process group # or else apache will kill its parent. setsid(); - my @command = ( HTTPD_BIN, '-DFOREGROUND', '-f' => HTTPD_CONFIG, @args ); + warn "ignoring args: @args"; + my @command = ( $^X, '/app/scripts/bugzilla_quantum', 'daemon', "--listen=http://*:$ENV{PORT}" ); exec @command or die "failed to exec $command[0] $!"; }, diff --git a/Bugzilla/Quantum.pm b/Bugzilla/Quantum.pm index 7cfed59c6..7270ada55 100644 --- a/Bugzilla/Quantum.pm +++ b/Bugzilla/Quantum.pm @@ -66,6 +66,13 @@ rewrite => 1, $r->any('/')->to('Legacy#index_cgi'); + $r->get( + '/__lbheartbeat__' => sub { + my $c = shift; + $c->reply->file($c->app->home->child('__lbheartbeat__')); + }, + ); + my $urlbase = Bugzilla->localconfig->{urlbase}; $r->get( '/quicksearch.html' => sub { diff --git a/Bugzilla/Quantum/Static.pm b/Bugzilla/Quantum/Static.pm index 2a4ed1988..2bd0555e2 100644 --- a/Bugzilla/Quantum/Static.pm +++ b/Bugzilla/Quantum/Static.pm @@ -24,9 +24,9 @@ sub file { return $self->SUPER::file($legacy_rel); } else { - warn "legacy $rel\n"; + warn "mojo $rel\n"; return $self->SUPER::file($rel); } } -1;
\ No newline at end of file +1; |