Related user(s):
@erikmd, @AltGr
Related issue(s) or PR(s):
Related project scope(s):
No response
The problem:
- learn-ocaml 1.0.0 's
learn-ocaml build serve --replace is very nice 💯
- but in a docker-compose context, on an exodir update, we don't successively start 2 learn-ocaml procs
(anyway, there's the 1-proc-per-container rule!)
- we rather use
docker compose restart, and we would really like to benefit from the --replace semantics in this case
Wanted solution:
- add an alternative option to
--replace, e.g. --fork-replace, or --smooth-replace
Considered alternatives:
- (add an additional option, passed along with
--replace, e.g. --fork or --quick-restart)
- (but issue if
--fork is passed without --replace)
Additional context:
We should think about ENV VARS as well! (e.g., a single environment variable that can be set to {}="0", "1" or "2")