Add --port and --host as options to the guix-data-service

This commit is contained in:
Christopher Baines 2019-06-13 19:06:53 +01:00
parent bd292d6f57
commit 5323f24133
2 changed files with 23 additions and 6 deletions

View file

@ -43,8 +43,8 @@
(apply values
(run-controller controller request body)))
(define (start-guix-data-service-web-server port)
(define (start-guix-data-service-web-server port host)
(run-server (lambda (request body)
(handler request body controller))
#:addr INADDR_ANY
#:host host
#:port port))