capistrano3 - How to ignore files with Capistrano 3 without copy_exlude -
in capistrano 2 possible exclude files live in git repository copy_exclude:
set :copy_exclude, %w{.git .ds_store web concept config lib} this isn't possible anymore in capistrano 3. how can exclude files want in git repository not on server?
the way achieve add .gitattributes root of repo. works similar .gitignore. add paths files want in repository not on staging / production server followed export-ignore , commit+push changes.
sample .gitattributes file:
# folders /config export-ignore /lib export-ignore # files license.txt export-ignore readme.html export-ignore then deploy usual. more info here
Comments
Post a Comment