Excluding files from being deployed with Capistrano while still under version control with Git

Posted by Jimmy Cuadra on Stack Overflow See other posts from Stack Overflow or by Jimmy Cuadra
Published on 2010-04-01T05:11:16Z Indexed on 2010/04/01 5:13 UTC
Read the original article Hit count: 350

I want to start testing the JavaScript in my Rails apps with qUnit and I'm wondering how to keep the test JavaScript and test runner HTML page under version control (I'm using Git, of course) but keep them off the production server when I deploy the app with Capistrano. My first thought is to let Capistrano send all the code over as usual including the test files, and write a task to delete them at the end of the deployment process. This seems like sort of a hack, though. Is there a cleaner way to tell Capistrano to ignore certain parts of the repository when deploying?

© Stack Overflow or respective owner

Related posts about git

Related posts about capistrano