2010-01-03 71 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

相关问题