2011-10-25 4 views
1

私のレール3のアプリケーションを展開する際に重大な問題があります。 StackOverflowにこの問題に対する回答の投稿はありません。cap展開:gitリポジトリの問題がレール3のアプリケーションをデプロイするときに発生します

誰でもこの問題が発生している可能性があり、修正方法を知っていますか?前もって感謝します。

dev:test me$ cap deploy 
    * executing `deploy' 
    * executing `deploy:update' 
** transaction: start 
    * executing `deploy:update_code' 
    executing locally: "git ls-remote ssh://[email protected]/srv/test master" 
[email protected]'s password: 
    command finished in 4102ms 
    * executing "git clone --depth 1 ssh://[email protected]/srv/test /srv/test/releases/20111025125230 && cd /srv/test/releases/20111025125230 && git checkout -b deploy eb6e04f696aed7a13ee58633ca68902a010685b0 && git submodule init && git submodule sync && export GIT_RECURSIVE=$([ ! \"`git --version`\" \\< \"git version 1.6.5\" ] && echo --recursive) && git submodule update --init $GIT_RECURSIVE && rm -Rf /srv/test/releases/20111025125230/.git && (echo eb6e04f696aed7a13ee58633ca68902a010685b0 > /srv/test/releases/20111025125230/REVISION)" 
    servers: ["myserver.net"] 
Password: 
    [myserver.net] executing command 
** [myserver.net :: out] Initialized empty Git repository in /srv/test/releases/20111025125230/.git/ 
** [myserver.net :: out] [email protected]'s password: 
Password: 
** [myserver.net :: out] 
** [myserver.net :: out] fatal: '/srv/test' does not appear to be a git repository 
** [myserver.net :: out] fatal: The remote end hung up unexpectedly 
    command finished in 3930ms 
*** [deploy:update_code] rolling back 
    * executing "rm -rf /srv/test/releases/20111025125230; true" 
    servers: ["myserver.net"] 
    [myserver.net] executing command 
    command finished in 920ms 
failed: "rvm_path=/usr/local/rvm /usr/local/rvm/bin/rvm-shell '@global' -c 'git clone --depth 1 ssh://[email protected]/srv/test /srv/test/releases/20111025125230 && cd /srv/test/releases/20111025125230 && git checkout -b deploy eb6e04f696aed7a13ee58633ca68902a010685b0 && git submodule init && git submodule sync && export GIT_RECURSIVE=$([ ! \"`git --version`\" \\< \"git version 1.6.5\" ] && echo --recursive) && git submodule update --init $GIT_RECURSIVE && rm -Rf /srv/test/releases/20111025125230/.git && (echo eb6e04f696aed7a13ee58633ca68902a010685b0 > /srv/test/releases/20111025125230/REVISION)'" on myserver.net 
dev:test me$ 
+1

'config/deploy.rb'を投稿してください –

+0

あなたのリポジトリは/ srv/testにありますか? – Holin

答えて

2

エラーは、パスssh://[email protected]/srv/testがgitリポジトリではないことを意味します。

パスが正しいことを確認してください。 myserver.netサーバにログインし、/srv/testにcdして、そのフォルダの内容を確認します。それに応じてdeploy.rbファイルを変更します。

+0

確認で正確にはどういう意味ですか? – Shobhit

関連する問題