【问题标题】:capistrano error with passenger & git "sh: 2: master: not found"乘客和 git “sh: 2: master: not found”的 capistrano 错误
【发布时间】:2013-02-13 16:58:06
【问题描述】:

我正在为我的一个项目设置 capistrano。 (这是Rails 3 Apps with Git, Capistrano and Passenger
这几乎是相同的情况,除了我的应用程序目录受 git 控制,所以我不得不

git 远程 rm 来源

之前

git remote add origin ssh://h41319@h33.hvosting.ua/~/www/elmor.org.ua

如果我运行 cap deploy 我得到一个错误并且部署被回滚......错误如下

** 事务:开始
* 2013-02-13 18:43:36 执行 `部署:更新代码' 在本地执行:“git ls-remote ssh://h41319@h33.hvosting.ua/~/www/elmor.org.ua\n master” sh: 2:
主:未找到
* [deploy:update_code] 回滚

【问题讨论】:

    标签: git ruby-on-rails-3.2 capistrano passenger


    【解决方案1】:

    在服务器上设置应用程序目录时出错,现在可以了:

    set :applicationdir, "~/www/#{domain}"

    【讨论】:

      猜你喜欢
      • 2020-09-26
      • 2013-08-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-01-28
      • 1970-01-01
      • 2015-09-29
      • 2018-06-06
      相关资源
      最近更新 更多