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放下。
这也适用于颠覆。