1

所以我一直在尝试在 Capistrano 的帮助下将我的 ruby​​ 部署在 Rails 网站上,当我运行cap deploy:cold这就是我得到的:

C:\Sites\blog>cap deploy:cold
  * ←[32m2012-11-02 00:47:49 executing `deploy:cold'←[0m
  * ←[32m2012-11-02 00:47:49 executing `deploy:update'←[0m
 ** transaction: start
  * ←[32m2012-11-02 00:47:49 executing `deploy:update_code'←[0m
    ←[33mexecuting locally: "git ls-remote git@github.com:averageAwesome/blog.gi
t master"←[0m
    ←[2;37mcommand finished in 2686ms←[0m
  * ←[33mexecuting "git clone --depth 1 git@github.com:averageAwesome/blog.git /
var/chroot/home/content/39/10025539/html/blow4849/blog/releases/20121102004752 &
& cd /var/chroot/home/content/39/10025539/html/blow4849/blog/releases/2012110200
4752 && git checkout -b deploy 700dd36e9e5476880fea92c48bffcfb6ff455fe8 && git s
ubmodule init && git submodule sync && export GIT_RECURSIVE=$([ ! \"`git --versi
on`\" \\< \"git version 1.6.5\" ] && echo --recursive) && git submodule update -
-init $GIT_RECURSIVE && rm -Rf  /var/chroot/home/content/39/10025539/html/blow48
49/blog/releases/20121102004752/.git && (echo 700dd36e9e5476880fea92c48bffcfb6ff
455fe8 >  /var/chroot/home/content/39/10025539/html/blow4849/blog/releases/20121
102004752/REVISION)"←[0m
    servers: ["188.121.54.128"]
Password:
    [188.121.54.128] executing command
 ** ←[35m[188.121.54.128 :: out] sh: git: command not found←[0m
    ←[2;37mcommand finished in 164ms←[0m
*** [←[34mdeploy:update_code←[0m] ←[34mrolling back←[0m
  * ←[33mexecuting "rm -rf  /var/chroot/home/content/39/10025539/html/blow4849/b
log/releases/20121102004752; true"←[0m
    servers: ["188.121.54.128"]
    [188.121.54.128] executing command
    ←[2;37mcommand finished in 131ms←[0m
failed: "sh -c 'git clone --depth 1 git@github.com:averageAwesome/blog.git /var/
chroot/home/content/39/10025539/html/blow4849/blog/releases/20121102004752 && cd
 /var/chroot/home/content/39/10025539/html/blow4849/blog/releases/20121102004752
 && git checkout -b deploy 700dd36e9e5476880fea92c48bffcfb6ff455fe8 && git submo
dule init && git submodule sync && export GIT_RECURSIVE=$([ ! \"`git --version`\
" \\< \"git version 1.6.5\" ] && echo --recursive) && git submodule update --ini
t $GIT_RECURSIVE && rm -Rf  /var/chroot/home/content/39/10025539/html/blow4849/b
log/releases/20121102004752/.git && (echo 700dd36e9e5476880fea92c48bffcfb6ff455f
e8 >  /var/chroot/home/content/39/10025539/html/blow4849/blog/releases/201211020
04752/REVISION)'" on 188.121.54.128

任何想法可能出了什么问题?

4

1 回答 1

0

是的。这是重要的一行:

 ** ←[35m[188.121.54.128 :: out] sh: git: command not found←[0m

您尚未git在部署服务器上安装,或者如果已安装,则它不在部署用户的路径中。

于 2012-11-02T03:52:21.600 回答