Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method 'keepalive' #78

Closed
pcasaretto opened this issue Jan 13, 2012 · 4 comments
Closed

undefined method 'keepalive' #78

pcasaretto opened this issue Jan 13, 2012 · 4 comments

Comments

@pcasaretto
Copy link

Hello,

When following the tutorial on http://godrb.com/ I get

$ rvmsudo god -c simple.god -D
I [2012-01-13 21:54:09]  INFO: Loading simple.god
I [2012-01-13 21:54:09]  INFO: Syslog enabled.
I [2012-01-13 21:54:09]  INFO: Using pid file directory: /var/run/god
There was an error in simple.god
    undefined method `keepalive' for #<God::Watch:0x00000001377ef8>
    /usr/local/rvm/gems/ruby-1.9.2-p290/gems/god-0.11.0/lib/god/task.rb:219:in `method_missing'
    /home/ec2-user/god/simple.god:4:in `block in <top (required)>'
    /usr/local/rvm/gems/ruby-1.9.2-p290/gems/god-0.11.0/lib/god.rb:269:in `task'
    /usr/local/rvm/gems/ruby-1.9.2-p290/gems/god-0.11.0/lib/god.rb:253:in `watch'
    /home/ec2-user/god/simple.god:1:in `<top (required)>'
    /usr/local/rvm/gems/ruby-1.9.2-p290/gems/god-0.11.0/lib/god/cli/run.rb:156:in `load'
    /usr/local/rvm/gems/ruby-1.9.2-p290/gems/god-0.11.0/lib/god/cli/run.rb:156:in `load_god_file'
    /usr/local/rvm/gems/ruby-1.9.2-p290/gems/god-0.11.0/lib/god/cli/run.rb:148:in `block in load_config'
    /usr/local/rvm/gems/ruby-1.9.2-p290/gems/god-0.11.0/lib/god/cli/run.rb:147:in `each'
    /usr/local/rvm/gems/ruby-1.9.2-p290/gems/god-0.11.0/lib/god/cli/run.rb:147:in `load_config'
    /usr/local/rvm/gems/ruby-1.9.2-p290/gems/god-0.11.0/lib/god/cli/run.rb:72:in `default_run'
    /usr/local/rvm/gems/ruby-1.9.2-p290/gems/god-0.11.0/lib/god/cli/run.rb:84:in `run_in_front'
    /usr/local/rvm/gems/ruby-1.9.2-p290/gems/god-0.11.0/lib/god/cli/run.rb:23:in `dispatch'
    /usr/local/rvm/gems/ruby-1.9.2-p290/gems/god-0.11.0/lib/god/cli/run.rb:8:in `initialize'
    /usr/local/rvm/gems/ruby-1.9.2-p290/gems/god-0.11.0/bin/god:122:in `new'
    /usr/local/rvm/gems/ruby-1.9.2-p290/gems/god-0.11.0/bin/god:122:in `<top (required)>'
    /usr/local/rvm/gems/ruby-1.9.2-p290/bin/god:19:in `load'
    /usr/local/rvm/gems/ruby-1.9.2-p290/bin/god:19:in `<main>'
E [2012-01-13 21:54:09] ERROR: File 'simple.god' could not be loaded

Is the tutorial outdated?

@mojombo
Copy link
Owner

mojombo commented Jan 14, 2012

You need to upgrade to the 0.12.0 version to use keepalive.

On Jan 13, 2012, at 1:58 PM, pcasarettoreply@reply.github.com wrote:

Hello,

When following the tutorial on http://godrb.com/ I get

[ec2-user@ip-10-252-4-70 god]$ rvmsudo god -c simple.god -D
I [2012-01-13 21:54:09] INFO: Loading simple.god
I [2012-01-13 21:54:09] INFO: Syslog enabled.
I [2012-01-13 21:54:09] INFO: Using pid file directory: /var/run/god
There was an error in simple.god
undefined method keepalive' for #<God::Watch:0x00000001377ef8> /usr/local/rvm/gems/ruby-1.9.2-p290/gems/god-0.11.0/lib/god/task.rb:219:inmethod_missing'
/home/ec2-user/god/simple.god:4:in block in <top (required)>' /usr/local/rvm/gems/ruby-1.9.2-p290/gems/god-0.11.0/lib/god.rb:269:intask'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/god-0.11.0/lib/god.rb:253:in watch' /home/ec2-user/god/simple.god:1:in<top (required)>'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/god-0.11.0/lib/god/cli/run.rb:156:in load' /usr/local/rvm/gems/ruby-1.9.2-p290/gems/god-0.11.0/lib/god/cli/run.rb:156:inload_god_file'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/god-0.11.0/lib/god/cli/run.rb:148:in block in load_config' /usr/local/rvm/gems/ruby-1.9.2-p290/gems/god-0.11.0/lib/god/cli/run.rb:147:ineach'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/god-0.11.0/lib/god/cli/run.rb:147:in load_config' /usr/local/rvm/gems/ruby-1.9.2-p290/gems/god-0.11.0/lib/god/cli/run.rb:72:indefault_run'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/god-0.11.0/lib/god/cli/run.rb:84:in run_in_front' /usr/local/rvm/gems/ruby-1.9.2-p290/gems/god-0.11.0/lib/god/cli/run.rb:23:indispatch'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/god-0.11.0/lib/god/cli/run.rb:8:in initialize' /usr/local/rvm/gems/ruby-1.9.2-p290/gems/god-0.11.0/bin/god:122:innew'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/god-0.11.0/bin/god:122:in <top (required)>' /usr/local/rvm/gems/ruby-1.9.2-p290/bin/god:19:inload'
/usr/local/rvm/gems/ruby-1.9.2-p290/bin/god:19:in `

'
E [2012-01-13 21:54:09] ERROR: File 'simple.god' could not be loaded

Is the tutorial outdated?


Reply to this email directly or view it on GitHub.

@pcasaretto
Copy link
Author

This is not clear on the tutorial.
gem install god installed 0.11.0
Maybe an update to the tutorial?

@pcasaretto
Copy link
Author

Actually, I believe you just updated the gem on rubygems :)

@mojombo
Copy link
Owner

mojombo commented Jan 14, 2012

Yes, I just did the release yesterday. I'll update the docs to make
sure it's more clear.

On Fri, Jan 13, 2012 at 7:13 PM, pcasaretto
reply@reply.github.com
wrote:

Actually, I believe you just updated the gem on rubygems :)


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants