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

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -