2010-02-07 46 views
1

我有個本地倉庫中有我的應用程序,在C(使用TortoiseSVN創建)部署:\搭接SVN \ GWS錯誤Capistrano的從本地文件夾

我deploy.rb有:

set :user, '<removed>' 
set :application, "gws" 
set :repository, "file:///c:/lap-svn/gws" 
set :server, 'plantality.com' 
set :applicationdir, 'gws' 
set :use_sudo, false 
set :keep_releases, 5 
set :deploy_via, :copy 

set :scm, :none 

當我去部署我得到一個錯誤:

C:\Ruby\GWS>cap deploy:cold 
    * executing `deploy:cold' 
    * executing `deploy:update' 
** transaction: start 
    * executing `deploy:update_code' 
    * getting (via checkout) revision to C:/Users/Mike/AppData/Local/Temp/20100207162735 
    executing locally: xcopy file:///c:/lap-svn/gws "C:\Users\Mike\AppData\Local\Temp\20100207162735" \S\I\Y\Q\E 
    Invalid number of parameters 
*** [deploy:update_code] rolling back 
    * executing "rm -rf /home/plantali/gws/releases/20100207162735; true" 
    servers: ["plantality.com"] 
Password: 
    [plantality.com] executing command 
    command finished 
C:/TurboRDK/lib/ruby/gems/1.8/gems/capistrano-2.5.14/lib/capistrano/recipes/deploy/strategy/copy.rb:94:in `initialize': No such file or directory - C:/Users/Mike/AppData/Local/Temp/20100207162735/REVISION (Errno::ENOENT) 

這似乎有文件名爲修訂的問題,但有項目沒有這樣的文件。

回答

0

再次發佈後20秒我找到我自己的答案。咄。

TortoiseSVN的它自己是不夠的,我需要安裝顛覆和改變deploy.rb單片機線回:顛覆

1

XCOPY不是用set :deploy_via, :copy工作,因爲XCOPY需要Windows風格的路徑。

set :repository, "file:///c:/lap-svn/gws" 

因爲這個倉庫路擁有着它斜槓(/),XCOPY解釋他們的選擇,而不是作爲路徑的一部分。相反,嘗試:

set :repository, "C:\lap-svn\gws" 

我知道你已經解決了這個問題很久以前由它周圍的工作,但我想張貼此爲他人作參考誰遇到這個問題。