How do I prevent capistrano from overwriting files uploaded by users in their own folders?
Posted
by Hrishi Mittal
on Stack Overflow
See other posts from Stack Overflow
or by Hrishi Mittal
Published on 2010-04-03T10:23:22Z
Indexed on
2010/04/03
10:33 UTC
Read the original article
Hit count: 247
I'm using Capistrano and git to deploy a RoR app. I have a folder under which each user has their own folder. When a user uploads or saves a file, it is saved in their own folder.
When I deploy new versions of the code to the server, the user files and folders are overwritten with what's on my dev machine.
Is there a way to ignore some folders in capistrano, like we do in git? This post - http://www.ruby-forum.com/topic/97539 - suggests using symlinks and storing the user files in a shared folder. But it's an old post, so I'm wondering if there is a better way to do it now.
Also, does anyone know of any good screencasts/tutorials to recommend for using RoR+git+capistrano?
Thanks.
© Stack Overflow or respective owner