[OCaml] Mobile-friendly clone of cgit.
1
(** Server startup.
2
3
Loads configuration, then hands the resulting routes to Dream. Startup fails
4
loudly rather than falling back to defaults, so a typo in a config file is
5
noticed immediately instead of silently changing which repositories are
6
served. The one exception is an explicit [git_project_root] on the command
7
line, which is enough on its own to run without any config file. *)
8
9
val run : ?git_project_root:string -> unit -> unit
10
(** Load configuration and start the HTTP server. When [git_project_root] is
11
provided it overrides the configured value (and suppresses the startup
12
failure when no config file exists). Does not return under normal operation.
13
*)
14