문제

I get this error when trying to deploy with capistrano 3.

cap production deploy:setup
cap aborted!
cannot load such file -- capistrano/mercurial.rb

my deploy:

...
set :branch, "default"
set :deploy_to, "/var/rails"
set :deploy_via, :remote_cache
set :scm, 'mercurial'
...

Do I need some kind of extension? The only I've found so far is Capistrano-Mercurial-Ext but it didn't help.

도움이 되었습니까?

해결책

Looking at the Capistrano 3 sourcecode in GitHub the Mercurial SCM task is called 'hg':

https://github.com/capistrano/capistrano/blob/master/lib/capistrano/tasks/hg.rake

So try changing the line:

set :scm, 'mercurial'

To be:

set :scm, :hg

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top