后台:我的目标是部署rails应用程序并在DreamHost上为此应用程序托管远程存储库。我正在使用Git进行版本控制。我创建了一个本地存储库,通过ssh将其提交并推送到远程存储库。 This大致是我创建远程存储库的过程。我好像已经成功创建了远程存储库。这是执行推送到远程存储库后返回的内容:
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来处理我的部署过程。执行上限部署:检查返回:
You appear to have all necessary dependencies installed
然而,当我运行cap deploy:冷,我得到以下内容:
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"
呼。所以,毕竟,我基本上想知道我错过了什么可能导致错误。 :)