You can export from svn before deployment in deploy.rb:

set :repository,  "svn+ssh://[email protected]/x/svn/rails/projectx"
set :deploy_via, :copy
set :copy_strategy, :export
#remote upload path /home/produser/tmp
set :copy_remote_dir, "#{home_path}/tmp"
#local /tmp/export.tar.gz path
set :copy_dir, "/tmp"
set :scm, :subversion


On Thu, Jun 4, 2009 at 9:20 AM, [email protected] <[email protected]> wrote:
>
> I am just trying to learn capistrano ..
>
> I have a situation where my dev machine has svn, but the deploy
> machine does not.
> I used some code from the rails cookbook where I over ride the
> update_code task.
>
> my repo looks something like this:
>
> set :repository,  "http://svnxxx/svn/aaa/trunk/distribution/website";
>
> when I run
> cap deploy:cold
>
>  I get the error farther below. The thing I don't understand is that
> the svn info command doesn't work for non local
> versions of the repo.
>
>  In other words:
>
>  svn info http://svnxxx/svn/aaa/trunk/distribution/website
> svn: 'svn info' only works on working copy paths, not URLs
>
> and in addition -rHEAD is not a valid svn info flag and in the errors
> that I get it is using that flag:
>
> svn info . -rHEAD
> Subcommand 'info' doesn't accept option '-r [--revision] arg'
> Type 'svn help info' for usage.
> $ svn help info
> info: Display information about a file or directory.
> usage: info [PATH...]
>
>  Print information about each PATH (default: '.').
>
> Valid options:
>  --targets arg            : pass contents of file ARG as additional
> args
>  -R [--recursive]         : descend recursively
>  --config-dir arg         : read user configuration files from
> directory ARG
>
>
>
> =========================
>
> cap deploy:cold
>
>
> /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/capistrano/
> recipes/deploy/scm/subversion.rb:58:in `query_revision': tried to run
> `svn info http://svnxxx/svn/aaa/trunk/distribution/website  -rHEAD'
> and got unexpected result "" (RuntimeError)
>        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/
> capistrano/recipes/deploy/scm/base.rb:35:in `send'
>        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/
> capistrano/recipes/deploy/scm/base.rb:35:in `method_missing'
>        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/
> capistrano/recipes/deploy/scm/base.rb:63:in `local'
>        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/
> capistrano/recipes/deploy/scm/base.rb:35:in `method_missing'
>        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/
> capistrano/recipes/deploy.rb:37:in `load'
>        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/
> capistrano/configuration/variables.rb:87:in `call'
>        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/
> capistrano/configuration/variables.rb:87:in `fetch'
>        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/
> capistrano/configuration/variables.rb:110:in `protect'
>         ... 38 levels...
>        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/
> capistrano/cli/execute.rb:14:in `execute'
>        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.5/bin/
> cap:4
>        from /usr/local/bin/cap:19:in `load'
>        from /usr/local/bin/cap:19
>
>
> >
>



-- 
Anthony Ettinger
408-656-2473
http://anthony.ettinger.name

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.co.uk/group/capistrano?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to