【问题标题】:Capistrano "no such file or directory - git ls-remote git@github.com"Capistrano“没有这样的文件或目录 - git ls-remote git@github.com”
【发布时间】:2013-03-01 04:24:38
【问题描述】:

我构建了一个 Rails 应用程序,目前正在将其从我的 Windows 系统部署到 vexxhost(一家托管公司)。我在 github 上有一个存储库,并且我遵循了部署我的 rails 应用程序的所有程序。一切都很顺利,直到我输入“cap deploy:cold”,然后显示以下错误。

我的 deploy.rb 文件

 require 'bundler/capistrano'
 require 'capistrano'
 require 'capistrano-vexxhost'


  # Account Settings

  ssh_options[:forward_agent] = true

  set :user, "innocent"
  set :password, "2Q0bNx85it"
  set :domain, "legoads.com"
  set :mount_path,"/home/innocent/public_html"
  set :application,"legoads"
  set :scm, :git
  set :repository, "git@github.com:innoc/Legoads.git"
  default_run_options[:pty] = true

【问题讨论】:

  • 你的服务器上安装了git吗?

标签: ruby-on-rails-3 git ruby-on-rails-3.1 capistrano bundler


【解决方案1】:

从错误看来,远程服务器中没有安装 git。安装 git 并再试一次,或者更好的是,制作一个 capistrano 配方来设置您的服务器,这将在其他任务中安装 git。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-01
    • 2015-07-29
    • 2017-02-10
    相关资源
    最近更新 更多