【问题标题】:Capistrano 3 and Mercurial, Cannot load such file -- capistrano/mercurial.rbCapistrano 3 和 Mercurial,无法加载此类文件 -- capistrano/mercurial.rb
【发布时间】:2013-11-14 15:13:37
【问题描述】:

我在尝试使用 capistrano 3 进行部署时收到此错误。

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

我的部署:

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

我需要某种扩展吗?到目前为止,我发现的唯一一个是 Capistrano-Mercurial-Ext,但它没有帮助。

【问题讨论】:

  • 你能提供你的 Capfile 吗?

标签: mercurial capistrano capistrano3


【解决方案1】:

查看 GitHub 中的 Capistrano 3 源代码,Mercurial SCM 任务称为“hg”:

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

所以尝试换行:

set :scm, 'mercurial'

成为:

设置 :scm, :hg

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-10-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-06
    • 1970-01-01
    相关资源
    最近更新 更多