chaps-io / gush

Fast and distributed workflow runner using ActiveJob and Redis
MIT License
1.03k stars 103 forks source link

first tryout, can't start Gush server #11

Closed andrea-spoldi closed 8 years ago

andrea-spoldi commented 8 years ago

Hi, I'm trying Gush out for the first time, followed the Readme but either with Rails app or simple Ruby I got this message when running "bundle exec gush workers"

/var/lib/gems/2.0.0/gems/gush-0.1.1/lib/gush/cli.rb:134:in load_gushfile': undefined methodexist?' for nil:NilClass (NoMethodError)

my Gushfile.rb is in the root of my project, even though with Rails app it shouldn't be necessary as stated in Readme

trying with a non Rails app my Gushfile looks like this :

require 'gush'

Dir["#{File.dirname(__FILE__)}/app/workflows/**/*.rb"].each { |f| puts f; require f }
Dir["#{File.dirname(__FILE__)}/app/jobs/**/*.rb"].each { |f| puts f; require f }

but still same error any ideas anyone ?

I'm using ruby 2.0.0p384 (2014-01-12) [x86_64-linux-gnu]

ty

pokonski commented 8 years ago

Hi Andrea,

sorry about the confusion in Readme. Gush is not yet autoloading files when in Rails app. I corrected that in README.

That said I fixed your bug in 0.1.2 which I just pushed to Rubygems. Can you try it now?

andrea-spoldi commented 8 years ago

Hi @pokonski thanks for prompt reply I did updated my bundle, now that error is gone but I still cannot run it :

/usr/lib/ruby/2.0.0/pathname.rb:389:in initialize': no implicit conversion of nil into String (TypeError) from /usr/lib/ruby/2.0.0/pathname.rb:389:innew' from /usr/lib/ruby/2.0.0/pathname.rb:389:in join' from /var/lib/gems/2.0.0/gems/gush-0.1.2/lib/gush/cli.rb:129:ingushfile' from /var/lib/gems/2.0.0/gems/gush-0.1.2/lib/gush/cli.rb:134:in load_gushfile' from /var/lib/gems/2.0.0/gems/gush-0.1.2/lib/gush/cli.rb:25:ininitialize' from /var/lib/gems/2.0.0/gems/thor-0.19.1/lib/thor.rb:355:in new' from /var/lib/gems/2.0.0/gems/thor-0.19.1/lib/thor.rb:355:indispatch' from /var/lib/gems/2.0.0/gems/thor-0.19.1/lib/thor/base.rb:440:in start' from /var/lib/gems/2.0.0/gems/gush-0.1.2/bin/gush:13:in<top (required)>' from /usr/local/bin/gush:23:in load' from /usr/local/bin/gush:23:in

'

didn't change my Gushfile, error's the same with or without Rails

ty

A

pokonski commented 8 years ago

Thanks for the stacktrace, I will inspect on my existing projects and try to recreate it. Then get back to you :)

andrea-spoldi commented 8 years ago

@pokonski I think I've managed to move on... had to specify "-f "

so it becomes : bundle exec gush workers -f ./Gushfile.rb

I got other errors there but I think I can manage it... I suppose Readme should be slightly improved ;)