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

Capistrano 3 Support seems broken #247

Closed
silvermind opened this issue Oct 23, 2013 · 24 comments
Closed

Capistrano 3 Support seems broken #247

silvermind opened this issue Oct 23, 2013 · 24 comments

Comments

@silvermind
Copy link

In a capistrano 3.0 project I try to get notifications about deployments.

so I have

# deploy.rb
require 'airbrake/capistrano'

but capistrano now failed with this message

# errror messag after cap deploy
cap aborted!
undefined method `instance' for Capistrano::Configuration:Class
..../airbrake-3.1.14/lib/airbrake/capistrano.rb:98:in `<top (required)>'
config/deploy.rb:4:in `<top (required)>'

Are you planning to support capistrano 3? At the moment the gemspec does not define a major version number of capistrano.

@chulkilee
Copy link

👍

1 similar comment
@kaluznyo
Copy link

kaluznyo commented Nov 5, 2013

+1

@fteem
Copy link

fteem commented Nov 14, 2013

Any progress on this? I'm having the same problem using Capistrano 3 with a Rails 4 app.

@spodlecki
Copy link
Contributor

+1

1 similar comment
@vimto
Copy link

vimto commented Nov 19, 2013

+1

@spodlecki
Copy link
Contributor

#255

I'm using it on a production server now -- seems to be working fine. Didn't write tests or anything. Repo isn't being passed though, feel free to update the code

@haobole
Copy link

haobole commented Dec 5, 2013

👍

2 similar comments
@osaris
Copy link

osaris commented Jan 4, 2014

+1

@ghost
Copy link

ghost commented Jan 14, 2014

+1

@matbox
Copy link

matbox commented Jan 21, 2014

+1 .. It's a pity that there seems to be no support..

@darrenterhune
Copy link

The require should go in Capfile require 'airbrake/capistrano' for Capistrano 3, but not sure if that works haven't tested it yet

@kritik
Copy link

kritik commented Feb 14, 2014

@ darrenterhune no, it doesn't

@ashishbista
Copy link

I tried master branch. But, this seems to be still an issue.

@hrdwdmrbl
Copy link

+1

1 similar comment
@azisaka
Copy link

azisaka commented Mar 7, 2014

+1

@darrenterhune
Copy link

Already merged @azisaka 574ad71

@JamesCropcho
Copy link

Hey, I'm having an identical issue to the one described, even bundling the master branch version of the gem. Any ideas would be appreciated.

@kaluznyo
Copy link

Are you require capitrano3 in Capfile like this : require 'airbrake/capistrano3' ?

@JamesCropcho
Copy link

Hey, so I happily don't get any errors when I deploy anymore. Thanks!

I don't yet appear to be tracking deployments, though.

Is there anything else I need to do in addition? (Forgive me if this is in
the documentation, kindly, as I didn't see it).

Thanks Again,
James

On Wed, Mar 26, 2014 at 3:01 AM, Olivier Kaluzny
notifications@github.comwrote:

Are you require capitrano3 in Capfile like this : require
'airbrake/capistrano3' ?

Reply to this email directly or view it on GitHubhttps://github.com//issues/247#issuecomment-38655006
.

@kaluznyo
Copy link

Have you after :finished, 'airbrake:deploy' in your deploy.rb ?

@JamesCropcho
Copy link

Ah, alright- so, that did it. Thanks, Olivier! I'm now tracking deployments.

J

I'm on Twitter: @Cropcho https://twitter.com/Cropcho

On Wed, Mar 26, 2014 at 11:57 AM, Olivier Kaluzny
notifications@github.comwrote:

Have you after :finished, 'airbrake:deploy' in your deploy.rb ?

Reply to this email directly or view it on GitHubhttps://github.com//issues/247#issuecomment-38701651
.

@chulkilee
Copy link

require 'airbrake/capistrano3 fixed the error. Let's close this issue...

@wkirschbaum
Copy link

yeah, the above worked, thanks @chulkilee

@phumpal
Copy link

phumpal commented Apr 4, 2014

Closing this out.

require 'airbrake/capistrano3' is the fix.

@phumpal phumpal closed this as completed Apr 4, 2014
@severin
Copy link

severin commented Aug 26, 2014

The generator is still broken: #324

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