There is no copy strategy, but you can undefined the "Git" tasks and
https://github.com/capistrano/sshkit/blob/master/EXAMPLES.md#upload-a-directory-of-filesor
http://lee.hambley.name/2013/06/11/using-capistrano-v3-with-chef.html

Capistrano will soon default to not loading the "Git" tasks at all, unless
asked. (so you don't have to turn off features that you don't need, just
don't load them in the first place.) There'll be an issue created soon
enough, I thought there was one, but searching suggests not.

The copy strategy was removed due to nobody in the entire project's history
ever having been satisfied with the default options we chose. (I might be
exaggerating, but the feature never seemed to work out of the box for
anyone, rsync, exclude patterns, sftp vs. scp, etc, etc, etc) - the easiest
way is just to provide the versioning framework and give people the tools
to do whatever works for them.

A bit reason for the move to backing Capistrano with Rake (see my blog link
above) was to enable this conditional rebuild of binaries (tarballs, etc)
for the use-cases such as deploying chef recipes, and things which don't
necessarily need to be committed first, before you can test them (at least
in all my experience, if I had to commit chef cookbooks before testing
them, my Git history would be a *mess*.)

Hope that clarifies some of the "why" in the meantime, track this thread,
I'll update it when I find, or create the ticket which is of interest to
you.

Lee Hambley
--
http://lee.hambley.name/
+49 (0) 170 298 5667


On 10 February 2014 15:02, Cathal O'Riordan <[email protected]>wrote:

> And can you still use the copy strategy?
>
> On Monday, 10 February 2014 12:41:52 UTC, Lee Hambley wrote:
>
>> It wasn't. That's never been possible without using the `copy` strategy
>> which made a tarball of the current working directory, and uploaded it.
>>
>> Lee Hambley
>> --
>> http://lee.hambley.name/
>> +49 (0) 170 298 5667
>>
>>
>> On 10 February 2014 13:34, Cathal O'Riordan <[email protected]> wrote:
>>
>>> Why was that functionality removed?
>>>
>>>
>>> On Friday, 7 February 2014 20:05:16 UTC, Lee Hambley wrote:
>>>
>>>> You can't deploy from a repository on your machine, on your server yes.
>>>>
>>>> Sent from my Nexus 4.
>>>> On 7 Feb 2014 16:14, "Cathal O'Riordan" <[email protected]> wrote:
>>>>
>>>>>  I've set it like this:
>>>>>
>>>>> set :scm, :git
>>>>> set :repo_url, 'file:///Users/Cathal/Work/vle/moodle_24'
>>>>>
>>>>>
>>>>> which when run as a deployment, results in
>>>>>
>>>>> fatal: '/Users/Cathal/Work/vle/moodle_24' does not appear to be a git
>>>>> repository
>>>>>
>>>>>
>>>>> It looks like Capistrano is trying to run git ls-remote
>>>>> /Users/Cathal/Work/vle/moodle_24 on the deployment target. That's not
>>>>> right, is it?
>>>>>
>>>>> Cathal.
>>>>>
>>>>> On Friday, 7 February 2014 15:05:47 UTC, Lee Hambley wrote:
>>>>>>
>>>>>>  Which parameter should be set to the local repo?
>>>>>>>
>>>>>>> :repo_url, :repository, :local_repository
>>>>>>>
>>>>>>
>>>>>> It should be repo_url, the others don't exist in Capistrano 3.​​
>>>>>>
>>>>>  --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Capistrano" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>> To view this discussion on the web, visit https://groups.google.com/d/
>>>>> msgid/capistrano/2969354b-6d15-4b32-a69e-4aa6f410fb72%40googl
>>>>> egroups.com.
>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>
>>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Capistrano" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web, visit https://groups.google.com/d/
>>> msgid/capistrano/9e810460-66fd-451b-b27b-c51534f651a1%40googlegroups.com
>>> .
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Capistrano" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/capistrano/ffb69e13-f25c-41fd-b004-e5f6774525cf%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/capistrano/CAN_%2BVLWEck3mr6j7b%3DcYmSHh518kQ5aX%3DGkCsNqH%3D6d-vNT%2BXw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to