phallstrom / slackistrano

Slack integration for Capistrano deployments.
MIT License
374 stars 74 forks source link

Don't know how to build task 'deploy:failed' #7

Closed rusllonrails closed 10 years ago

rusllonrails commented 10 years ago

Hey Guys,

I got error while running 'cap staging slack:deploy:starting':

$ cap staging slack:deploy:starting
cap aborted!
Don't know how to build task 'deploy:failed'
/home/alkapone/.rvm/gems/ruby-2.1.0@myapp/gems/capistrano-3.0.1/lib/capistrano/dsl/task_enhancements.rb:10:in `after'
/home/alkapone/.rvm/gems/ruby-2.1.0@myapp/gems/slackistrano-0.0.11/lib/slackistrano/tasks/slack.rake:64:in `<top (required)>'
/home/alkapone/.rvm/gems/ruby-2.1.0@myapp/gems/slackistrano-0.0.11/lib/slackistrano.rb:5:in `load'
/home/alkapone/.rvm/gems/ruby-2.1.0@myapp/gems/slackistrano-0.0.11/lib/slackistrano.rb:5:in `<top (required)>'
/home/alkapone/projects/myapp/Capfile:13:in `require'
/home/alkapone/projects/myapp/Capfile:13:in `<top (required)>'

I did following:

1) added to Gemfile

gem "capistrano", "~> 3.0.1"
gem "capistrano-rails", "~> 1.1.0"
gem "capistrano-bundler"
gem 'slackistrano', require: false

and runned 'bundle'

2) added to Capfile:

require 'slackistrano'

3) added to config/deploy.rb

set :slack_team, <here I added my real team name>
set :slack_token, <here I added my token>

Thanks for any help

rusllonrails commented 10 years ago

Sorry guys, found. My bad. I Used not latest version of Capistrano. Did:

bundle update capistrano
bundle update capistrano-rails

And now it works =) I thinks this issue can be closed.

Thanks for nice gem guys )

phallstrom commented 10 years ago

Glad you figured it out. What version was failing and what version worked? I should update the readme at least...

rusllonrails commented 10 years ago

@phallstrom on my side failed with: capistrano (3.0.1)

Then update to: capistrano (3.2.1) solved it =)

phallstrom commented 10 years ago

@RuslanHamidullin Thanks. I've made >= 3.1.0 a requirement.

Commit: c833572432ef4b11064d191eba3d319600b016a8 Ref: #3

rusllonrails commented 10 years ago

Thank you too guys )

aledalgrande commented 9 years ago

@phallstrom you wrote it right in the commit message, but not in the code:

gem.add_dependency 'capistrano', ['>= 3.0.1']
phallstrom commented 9 years ago

@aledalgrande Oops. Fixed. Released. Thx.