1
我想更改Capistrano用於複製的默認策略。爲此,我已經列入Capfile更改Capistrano策略
set :strategy, Capistrano::Deploy::Strategy::Copy.new(self)
以下行,但它拋出一個異常
Capfile:17:in `load': uninitialized constant Capistrano::Deploy::Strategy::Copy (NameError)
更新引用鏈接(對於那些在家裏玩:使用哈希承諾,而不是分支名稱):https://github.com/capistrano/capistrano/blob/b84258a/lib/ Capistrano酒店/食譜/ deploy.rb#L246-249 – Sasha