2012-03-14 2 views
0

アプリのサイズは65MBです。最大サイズには、/vendor/bundle - ほとんど63MBのフォルダがあります。Rails 3 - アプリケーションの大きなサイズ(約65MB)

質問は - なぜですか?どうすれば減らすことができますか? 私はcaipstranoでアプリケーションをデプロイしています。多くの時間がかかります...

答えて

2

毎回65MBのアップロードが必要なアプリケーションのデプロイは苦痛です。あなたは

set :deploy_via, :remote_cache 

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. 
から撮影

があなたの/config/deploy.rbファイルに以下を追加/config/deploy.rbファイル内deploy_viaのremote_cacheオプションをご覧ください

基本的には、アプリケーションを初めて配備するときはすべてがリポジトリから取得され、その後のすべての配備が変更されますうんざりした。

これは転覆でも機能します。

関連する問題