2012-03-14 35 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放下。

這也適用於顛覆。