diff --git a/hosts/ocaml/bin/sx_server.ml b/hosts/ocaml/bin/sx_server.ml index 5c5c0fe6..76bac756 100644 --- a/hosts/ocaml/bin/sx_server.ml +++ b/hosts/ocaml/bin/sx_server.ml @@ -1744,6 +1744,12 @@ let http_mode port = in load_dir lib_base; load_dir shared_sx; + (* sxc/ has core layout components like ~docs/page *) + let sx_sxc = try Sys.getenv "SX_SXC_DIR" with Not_found -> + let docker_path = project_dir ^ "/sxc" in + let dev_path = project_dir ^ "/sx/sxc" in + if Sys.file_exists docker_path then docker_path else dev_path in + load_dir sx_sxc; load_dir sx_sx; let t1 = Unix.gettimeofday () in Printf.eprintf "[sx-http] All files loaded in %.3fs\n%!" (t1 -. t0);