burke / zeus

Boot any rails app in under a second.
MIT License
3.33k stars 231 forks source link

Running zeus with zeus-guard and seeing current zeus status #676

Closed dgmora closed 3 years ago

dgmora commented 4 years ago

When running zeus standalone you can see how's zeus like this:

Screenshot 2020-07-13 at 18 34 18

But if you use zeus-guard with a Guardfile like this:

guard :rspec, cmd: "zeus rspec", results_file: '/tmp/guard_rspec_results.txt' do
  require "guard/rspec/dsl"
  dsl = Guard::RSpec::Dsl.new(self)

  # RSpec files
  rspec = dsl.rspec
  watch(rspec.spec_helper) { rspec.spec_dir }
  watch(rspec.spec_support) { rspec.spec_dir }
  watch(rspec.spec_files)
end

guard('zeus', bundler: false ) { }

You can't interact with the guard shell. To be able to do that, you need to do:

guard('zeus', bundler: false, cli: '> /dev/null') { }

But this leaves you without knowing what's going on with zeus, because you don't get any output.

I understand this could be a problem to report to guard-zeus, but is there any other recommended way to see what's zeus status? I'd like to be able to start/stop zeus automatically and know if something crashed.