If you set :copy_cache to true it does, as long as the files being ignored have not been checked into your repo somehow. The reason it works is because copy_cache causes your local repo to be cloned in a temp directory, and then the clone is copied and sent to the servers.

- Jamis

On Aug 24, 2008, at 3:04 AM, Andy Pearson wrote:


Thanks Jamis, I am going to try this out now and see how it goes.

One quick question, does this method honor my .gitignore files? My
application generates a load of image files which I don't need to
deploy with as they will be re-generated in production.

Thanks again,

Andy

On 23 Aug, 23:58, Jamis Buck <[EMAIL PROTECTED]> wrote:
I'm actually using this to deploy my blog software (mephisto) to my
new server. The repo is local (since I've had to create a branch for
some local mods I've added).  Just do:

   set :repository, "."
   set :deploy_via, :copy

You can save yourself a little time on subsequent deploys with:

   set :copy_cache, true

And you can save a little more time by not deploying your .git
directory, tests and other miscellanea:

   set :copy_exclude, %w(.git test)

- Jamis

On Aug 23, 2008, at 4:19 PM, Andy Pearson wrote:



Hey all,

I am new to Capistrano, rails, git and unix (and pretty much anything
else related!)

Today I have set up a new Slicehost account with Ubuntu Hardy, Nginx, Thin and a testing rails app which all went pretty smoothly thanks to their great articles, and some help from some people in the Slicehost
campfire room.

Now I am trying to deploy the rails app I have been working on to this new server using Capistrano. I have spent several hours trying to get
it working to no avail and am now starting to doubt whether what I
want to do is even possible.

I have been managing my project using a local (client side) git repos.
Now what I want to do is deploy direct from that, to my server using
Capistrano, I have tried a load of different configurations for my
deploy.rb script but noting I have tried has worked (hence this help
request!).

I have seen a lot of examples which use GitHub as the repository, but
I am trying to cut out the middle man, as I think it may be overkill
for this project.

Thanks in advance, apologies if I have completely missed a discussion/
tutorial somewhere, I have tried searching and nothing turned up,
though I may have been looking for the wrong thing!

Andy




 smime.p7s
3KViewDownload

--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to