I upload files to my public/files folder of the Rails application on an ongoing basis through the web interface.
I do not want to keep them in the original control, since they go almost 2 GB, so every time I do cap deploy , it saves these files in releases/ and replaces the directory with the original copy in the repository.
I am wondering what is the best way to save these files on the server in the current directory. Some of my ideas are:
- Remove the directory from the source control and replace it with a link to an external directory that is not managed by Capistrano.
- Create a Capistrano task to copy the directory to / tmp before deployment, and then copy it back to / public after it is deployed.
Is there a standard way to do this?
ruby-on-rails release-management capistrano
Federico builes
source share