0
該應用程序的大小爲65MB。當得到最大的大小有文件夾/vendor/bundle
- 差不多63MB。Rails 3 - 大尺寸的應用程序(大約65MB)
所以問題是 - 爲什麼?我怎樣才能減少它? 我與caipstrano部署我的應用程序,它需要很多時間...
該應用程序的大小爲65MB。當得到最大的大小有文件夾/vendor/bundle
- 差不多63MB。Rails 3 - 大尺寸的應用程序(大約65MB)
所以問題是 - 爲什麼?我怎樣才能減少它? 我與caipstrano部署我的應用程序,它需要很多時間...
我敢肯定,當應用程序必須每次上傳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放下。
這也適用於顛覆。