Rails 如何使用 Capistrano 部署 rails 并且使用 remote_cache 选项?

siriuszhuang · July 19, 2012 · Last by siriuszhuang replied at July 26, 2012 · 3575 hits

配置了一个 gitosis 在一个服务器上面,其他的服务器拥有 ssh 的只读权限。每次部署的时候如果用默认的 checkout 都会成功。只不过每次全新的 checkout 出来太慢了,于是想用 remote_cache,但是用 remote_cache 的时候都会提示

fatal: Not a git repository (or any of the parent directories): .git

不知道是我理解错误还是没有配置 OK。请教大家~谢谢了。

设置 set :deploy_via, :remote_cache 就可以了,可以参考 http://www.iteye.com/topic/1114390

set :repository_cache, "cached_copy"

已解决!

You need to Sign in before reply, if you don't have an account, please Sign up first.