mirror of
git://git.savannah.gnu.org/guix/maintenance.git
synced 2023-12-14 03:33:04 +01:00
hydra/goggles: Index all logs upon request.
* hydra/goggles.scm (main): Handle "index" argument.
This commit is contained in:
parent
f74c3e724a
commit
8f5f57b97f
1 changed files with 12 additions and 6 deletions
|
@ -358,9 +358,15 @@ freenode." channel))
|
|||
(cons (request-method request)
|
||||
(request-path-components request)))))
|
||||
|
||||
(define (main . args)
|
||||
(let ((port (assoc-ref %config 'port)))
|
||||
(run-server handler
|
||||
'http
|
||||
`(#:addr ,INADDR_ANY
|
||||
#:port ,port))))
|
||||
(define (main args)
|
||||
(match args
|
||||
((_ "index")
|
||||
(for-each index-channel-logs
|
||||
(assoc-ref %config 'channels))
|
||||
#t)
|
||||
(_
|
||||
(let ((port (assoc-ref %config 'port)))
|
||||
(run-server handler
|
||||
'http
|
||||
`(#:addr ,INADDR_ANY
|
||||
#:port ,port))))))
|
||||
|
|
Loading…
Reference in a new issue