阅读背景:

排除使用Capistrano部署文件,同时仍然使用Git进行版本控制

来源:互联网 

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?I want to start testing the JavaScript in my Ra




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: