Add experimental runit support
Update: demo: https://youtu.be/uMRG9_TazcE https://youtu.be/njukxpVM1L0
Because foreman drives me nuts, here is an experiment with using Runit.
This doesn't replace foreman but gives you the option to build a runit config based on your Procfile.
Closes #443 (closed)
Adds:
-
gdk start, alsogdk start webpack,gdk start rails-web rails-background-jobsetc. -
gdk stop,gdk restart,gdk statusall with optional service args -
pry in puma doesn't work anyway because it's multi-process. Leaving this as out of scopegdk foreground rails-webin case you want to use pry -
gdk tail,gdk tail gitalyetc. with merged logs, comparable to normal output of foreman
Does not address:
- Tasks where we boot services on demand, like when we start Postgres during initial setup, still use Foreman. I don't think it makes sense to convert those before we have decided we like Runit.
- Does not add Runit-related subcommands to documentation (e.g. missing from
gdk help) - Does not add documentation for installing Runit (e.g.
brew install runit)
Edited by Jacob Vosmaer