github.com/cirello-io/runner (go): Command runner is a very ugly and simple structured command executer that monitor file changes to trigger process restarts.  Create a file name Procfile in the root of the project you want to run, and add the following content:  Special process types:  - workdir: the working directory. Environment variables are expanded. It follows the same rules for exec.Command.Dir.  - observe: a space separated list of file patterns to scan for. It uses filepath.Match internally.  - ignore: a space separated list of ignored directories relative to workdir, typically vendor directories.  - build*: process type name prefixed by "build" are always executed first and in order of declaration. On failure, they halt the initialization.  - waitfor (in process type): target hostname and port that the runner will probe before starting the process type.  - restart (in process type): "always" will restart the process type every time; "fail" will restart the process type on failure; "temporary" will start the service once and not restart it on rebuilds.  - group (in process type): group of processes that depend on each other. If a process type fails, it will halt all others in the same group. If the "restart" paramater is not set to "always" or "fail", the affected process types will halt and not restart.  - sticky (in build process types): a sticky build is not interrupted when file changes are detected.  - optional (in process types): does not start this process unless explicit told so.
Keywords: orchestrator|procfile|runner