2012-03-14 56 views

回答

2

我敢肯定,当应用程序必须每次上传65MB时,deploing是一种痛苦。你应该看看在/config/deploy.rb文件deploy_via remote_cache选项

添加到您的/config/deploy.rb文件从http://help.github.com/deploy-with-capistrano/

Remote Cache 

In most cases you want to use this option, otherwise each deploy will do a 
full repository clone every time. 

set :deploy_via, :remote_cache 
Remote caching will keep a local git repo on the server you’re deploying to 
and simply un a fetch from that rather than an entire clone. This is probably 
the best option as it will only fetch the changes since the last. 
两者

set :deploy_via, :remote_cache 

因此,基本上会发生什么是您第一次部署应用程序时,所有内容都从回购中拉出,然后每次部署之后只更改为pu放下。

这也适用于颠覆。