我想更改Capistrano用于复制的默认策略。为此,我在Capfile中包含了以下行
set :strategy, Capistrano::Deploy::Strategy::Copy.new(self)
但它抛出异常
Capfile:17:in `load': uninitialized constant Capistrano::Deploy::Strategy::Copy (NameError)
答案 0 :(得分:4)
这是怎么回事?
set :deploy_via, :copy
参考:https://github.com/capistrano/capistrano/blob/master/lib/capistrano/recipes/deploy.rb#L46