开发者

set :deploy_via, :remote_cache this option is not applied to submodules

I am using git submodule feature with capistrano. I have

set :deploy_via, :remote_cache
set :git_enable_开发者_JAVA技巧submodules,1

Everything works great. However remote_cache option is only applied to main app. Which means that every single time I deploy the app all submodules pull in all changes and that takes a lot of time.

Is there a way to tell submodule to use :remote_cache.

Thanks


You need to go deep into capistrano sources, just search for git_enable_submodules and remote_cache.

I think there is no suitable to be used with remote_cache, but that should be no problem as you can copy code that does git_enable_submodules and write your own implementation.

When You have your solution you can fork capistrano add it to code and ask for pull request.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜