capistrano-copy-files icon indicating copy to clipboard operation
capistrano-copy-files copied to clipboard

example?

Open alister opened this issue 11 years ago • 5 comments

Are there any instructions on how to use capistrano-copy-files to, for example, pre-copy a composer-installed vendors directory into the new release?

alister avatar Apr 22 '14 14:04 alister

@alister Sorry for the lack of documentation - something I will try and fix tonight

peterjmit avatar Apr 22 '14 14:04 peterjmit

:+1: A simple example would be very helpful.

jaywilliams avatar May 01 '14 16:05 jaywilliams

ping @peterjmit

s7anley avatar Nov 07 '14 09:11 s7anley

Any updates on a working example @peterjmit ? Using

set :copy_files, ['vendor']

Seems to copy the files to release_path/vendor/vendor. The problem seems to be in these two lines:

        source = last_release_path.join(path)
        target = release_path.join(path)

If I change the target not to add the path to the release_path as such

        target = release_path

The vendor directory ends up in the right place.

peschee avatar Dec 19 '14 14:12 peschee

does this work?? Are there any examples of how a generic vendors directory would in fact be configured in a capistrano3 config/deploy.rb file, to be copied?

alister avatar Aug 04 '15 16:08 alister