Avdept
Avdept

Reputation: 2289

Adding deploy:update_code to deployment script

I'm using Capistrano 3, and in its' wiki says there is a recipe deploy:update_code, which updates code. However when I'm trying to use it, there is an error:

Don't know how to build task 'deploy:update_code'

Here is my Capfile:

require 'capistrano/setup'

# Includes default deployment tasks
require 'capistrano/deploy'

# Includes tasks from other gems included in your Gemfile
require 'capistrano/rvm'
require 'capistrano/bundler'
require 'capistrano/rails'
require 'capistrano3/unicorn'
require 'capistrano/bower'
require 'capistrano/sidekiq'
require 'capistrano/newrelic'
require 'capistrano/thin'

Which receipe am i missing to use this task?

Upvotes: 0

Views: 814

Answers (1)

Roman Kiselenko
Roman Kiselenko

Reputation: 44370

deploy:update_code it's internal capistrano hook not a rake task, you can see it in the picture of the default strategy:

enter image description here

Upvotes: 2

Related Questions