2

背景: Rails アプリのデプロイを目指しており、DreamHost でこのアプリのリモート リポジトリをホストしています。バージョン管理にGitを使用しています。ローカル リポジトリを作成し、コミットして、ssh 経由でリモート リポジトリにプッシュしました。これは、リモート リポジトリを作成する際に行ったおおよそのプロセスです。リモートリポジトリが正常に作成されたようです。これは、リモート リポジトリへのプッシュを実行した後に返されたものです。

Brent$ git push --all
$USER@$SERVER.dreamhost.com's password: 
Counting objects: 7, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 405 bytes, done.
Total 4 (delta 3), reused 0 (delta 0)
To ssh://$USER@$SERVER.dreamhost.com/home/$USER/git/movie-shelf.git
   0e93104..5782611  master -> master

問題: Capistrano を使用して展開プロセスを処理しようとしています (現時点ではうまくいきません)。cap deploy:check を実行すると、以下が返されます。

You appear to have all necessary dependencies installed

しかし、cap deploy:cold を実行すると、次のようになります。

Brent$ cap deploy:cold
  * executing `deploy:cold'
  * executing `deploy:update'
 ** transaction: start
  * executing `deploy:update_code'
    updating the cached checkout on all servers
    executing locally: "git ls-remote /home/$USER/git/movie-shelf.git master"
fatal: '/home/$USER/git/movie-shelf.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
*** [deploy:update_code] rolling back
  * executing "rm -rf /home/$USER/$APPLICATION/releases/20100919094735; true"
    servers: ["$SERVER.dreamhost.com"]
Password: 
    [$SERVER.dreamhost.com] executing command
    command finished
Command git ls-remote /home/$USER/git/movie-shelf.git master returned status code pid 71920 exit 128

deploy.rb に設定したリポジトリ パスは次のとおりです。

set :repository, "/home/#{user}/git/movie-shelf.git"

うわー。結局のところ、私は基本的に、そのエラーの原因となっている可能性のある何が欠けているのか疑問に思っています。:)

4

0 に答える 0