Forge.Server
Forge.Server — forge bastion server
Starts the Bastion dev server with file-watching and auto-restart.
Behaviour:
- Builds a shell watch-loop script that restarts
march <entry>on crash. - Optionally starts esbuild --watch for the assets pipeline (in background).
- Watches lib/ and config/ for .march file changes via a polling shell loop.
- On SIGINT: shell trap handler kills child processes and exits.
Ported from cmd_bastion_server.ml. Note: the March stdlib does not expose async process management primitives; file-watching and process supervision are delegated to a shell script.
Functions
fnmainmain(_cap_console : Cap(IO.Console), _cap_fileread : Cap(IO.FileRead), _cap_filewrite : Cap(IO.FileWrite), _cap_process : Cap(IO.Process))#
Start the Bastion dev server.
port_override is Some(port) to use a specific port, or None for the default (4000).