Herokuにいくつかの変更をプッシュすると、に関する警告に気付きましたvendor/bundle(以下の警告を参照)。
警告に従って、Gitトラッキングから「削除」する必要がある場合、このディレクトリの目的は何ですか?
Railsがデフォルトでvendor/bundle自動的に'dしないのはなぜですか?.gitignore
実行する必要がありますbundle packか?(実際bundle packageですか??)
(との両方とbundle pack比較して)周りの長所と短所は何ですか?developmentproduction
これをさらに混乱させるために、RyanMcGearyによる「VendorEverything」というタイトルの人気のあるブログ投稿があります。私の他の懸念に関連してこれに光を当てることは大いにありがたいです。bundle install --path vendorecho 'vendor/ruby' >> .gitignorevendor/cachebundle package
ありがとうございました。
-bash> git push production master
...
-----> Heroku receiving push
-----> Ruby/Rails app detected
-----> WARNING: Removing `vendor/bundle`.
Checking in `vendor/bundle` is not supported. Please remove this directory
and add it to your .gitignore. To vendor your gems with Bundler, use
`bundle pack` instead.
-----> Installing dependencies using Bundler version 1.2.1
Running: bundle install --without development:test --path vendor/bundle --binstubs bin/ --deployment
Using rake (0.9.2.2)
Using i18n (0.6.0)
...