【问题标题】:I can't deploy to linode using capistrano and git我无法使用 capistrano 和 git 部署到 linode
【发布时间】:2012-01-13 05:57:53
【问题描述】:

在尝试使用 capistrano 和 git 进行部署时,我遇到了这个错误:

    [178.79.133.74] executing command
 ** [178.79.133.74 :: out] Initialized empty Git repository in /var/www/depot31/shared /cached-copy/.git/
 ** [178.79.133.74 :: err] Host key verification failed.
 ** [178.79.133.74 :: err] fatal: The remote end hung up unexpectedly
    command finished in 292ms
failed: "sh -c 'if [ -d /var/www/depot31/shared/cached-copy ]; then cd /var/www/depot31/shared/cached-copy && git fetch  orig
in && git fetch --tags  origin && git reset  --hard aac2d7abf5281d7fb4993e39fc534ba44dd8d240 && git clean  -d -x -f; else git
 clone root@178.79.133.74:git/depot31.git /var/www/depot31/shared/cached-copy && cd /var/www/depot31/shared/cached-copy && git checkout -b deploy   aac2d7abf5281d7fb4993e39fc534ba44dd8d240; fi'" on 178.79.133.74

请问有什么原因造成的吗?

【问题讨论】:

    标签: git ssh windows-vista capistrano linode


    【解决方案1】:

    问题是,鉴于我正在尝试在 RVM 环境中进行部署,capistrano 正在尝试从我的开发机器中获取 RVM 环境变量,但由于 RVM 仅适用于基于 UNIX 的操作系统,因此无法找到它们。

    所以,归根结底,主要问题是 Windows。我现在正在切换到基于 UNIX 的操作系统。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-10-14
      • 1970-01-01
      • 2013-04-15
      • 2014-09-27
      • 2012-03-29
      • 2013-07-25
      • 1970-01-01
      • 2016-04-21
      相关资源
      最近更新 更多