2010-01-03 68 views
1

我從Windows Vista的計算機使用的是運行:Capistrano的錯誤:主機不存在/ SVN:連接意外關閉

  • 最新軌(如一月2 2010年),
  • Capistrano的2.5 0.10%,0.50
  • 顛覆的插件,並
  • TortoiseSVN的

到目前爲止,我有:

  • 創建的遠程存儲庫,
  • 創建ssh密鑰,和
  • 編輯TortoiseSVN的配置文件。

(我不知道如果我離開了什麼。)

下面是錯誤消息我收到的時候我嘗試使用Capistrano的部署:

* executing `deploy:cold' 

    * executing `deploy:update' 

** transaction: start 

    * executing `deploy:update_code' 

    executing locally: "svn info svn+ssh://mydomain.com/home/45454/data/svn/repository/ -rHEAD" 

checking for svn... yes 

Unable to open connection: 

Host does not exist 

svn: Connection closed unexpectedly 

*** [deploy:update_code] rolling back 

    * executing "rm -rf /home/45454/containers/rails/wcn/releases/20091230175413; true" 

    servers: ["mydomain.com"] 

    [mydomain.com] executing command 

    command finished 

C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/recipes/deploy/scm/subversion.rb:58:in `query_revision': tried to run `svn info svn+ssh://mydomain.com/home/45454/data/svn/repository/ -rHEAD' and got unexpected result "" (RuntimeError) 

       from C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/recipes/deploy/scm/base.rb:35:in `send' 

       from C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/recipes/deploy/scm/base.rb:35:in `method_missing' 

       from C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/recipes/deploy/scm/base.rb:63:in `local' 

       from C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/recipes/deploy/scm/base.rb:35:in `method_missing' 

       from C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/recipes/deploy.rb:38:in `load' 

       from C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/configuration/variables.rb:87:in `call' 

       from C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/configuration/variables.rb:87:in `fetch' 

       from C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/configuration/variables.rb:110:in `protect' 

       ... 38 levels... 

       from C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/cli/execute.rb:14:in `execute' 

       from C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/bin/cap:4 

       from C:/Ruby/bin/cap:19:in `load' 

       from C:/Ruby/bin/cap:19 

什麼任何想法我應該嘗試下一個?

回答

1

看起來像是當svn去簽出代碼時,它不能解析:repository定義的主機名,也不能ssh進入「mydomain.com」。

executing locally: "svn info svn+ssh://mydomain.com/home/45454/data/svn/repository/ -rHEAD" 

checking for svn... yes

Unable to open connection: Host does not existsvn: Connection closed unexpectedly

如果您正在部署到自己的Windows計算機,請嘗試使用local svn reference

相關問題