Skip to content
Snippets Groups Projects
Unverified Commit 12d71ee0 authored by Mathieu Lirzin's avatar Mathieu Lirzin
Browse files

cuirass: Run HTTP server.

* src/cuirass.scm: Re-export (cuirass http) module.
* bin/cuirass.in (main): Run HTTP server and move the 'process-specs'
loop in another thread.
parent 5973db52
No related branches found
No related tags found
No related merge requests found
......@@ -85,6 +85,10 @@ exec ${GUILE:-@GUILE@} --no-auto-compile -e main -s "$0" "$@"
new-specs)))
(if one-shot?
(process-specs db (db-get-specifications db))
(while #t
(process-specs db (db-get-specifications db))
(sleep interval))))))))))
(begin
(call-with-new-thread
(λ ()
(while #t
(process-specs db (db-get-specifications db))
(sleep interval))))
(run-cuirass-server db))))))))))
......@@ -30,4 +30,5 @@
(for-each (λ (m) (module-use! i (resolve-interface m)))
;; Public modules.
'((cuirass base)
(cuirass database)))))
(cuirass database)
(cuirass http)))))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment