我敢肯定,這已被問了上百次,但我找不到任何東西在谷歌或SE上,指出我可以接受的答案。我在本地Windows 7機器上做開發,並安裝了Capitrano 2.9.0和Capifony(昨天下載)的git 1.7.7.1。當我嘗試做了部署從GitHub我得到以下錯誤:Capistrano Capifony Github Deploy Windows
Command git ls-remote [email protected]:gituser/MyRepo.git master returned status code pid 6572 exit 1
這是我目前的deploy.rb:
set :application, "app"
set :domain, "app.mydomain.com"
set :deploy_to, "/home/user/#{domain}"
set :use_sudo, false
set :repository, "[email protected]:gituser/MyRepo.git"
set :scm, :git
set :user, "user"
default_run_options[:pty] = true # Must be set for the password prompt from git to work
ssh_options[:forward_agent] = true
# Deploy from master branch by default
set :branch, "master"
set :deploy_via, :remote_cache
#set :deploy_via, :copy
#set :deploy_via, :rsync_with_remote_cache
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `subversion`, `mercurial`, `perforce`, `subversion` or `none`
role :web, domain # Your HTTP server, Apache/etc
role :app, domain # This may be the same as your `Web` server
role :db, domain, :primary => true # This is where Rails migrations will run
set :keep_releases, 3
當我運行cap deploy
它要求我的本地github上的密鑰我輸入的短語,然後用主機app.mydomain.com的ssh密碼提示我。然後死於上面的出口。
說實話我剛開始只是嘗試使用capifony直接從我的本地機器上執行rsync部署:deploy_via:copy或:deploy_via:rsync_with_remote_cache,但兩者似乎因爲不同的原因而死亡,其中之一在此處描述(但修復並沒有爲我)的工作:
http://railsforum.com/viewtopic.php?id=37822
FWIW:帽部署:檢查正常工作以及帽部署:安裝...
任何幫助將不勝感激!