2017-06-26 20 views
0

私はWindows上で開発しており、image_optimとimage_optim_packのgemを使用しています。以前は、これらをHerokuにプッシュすることは問題ではなく、すべて正常に解決されました。今、私は新しい警告を取得し、生産が失敗した:私はこれを許可するようにHerokuの上のenv VARを設定しようとしたHeroku Bundler specific_platform true

Unable to use the platform-specific (x86_64-linux) version of image_optim_pack (0.5.0.20170609) because it has different dependencies from the ruby version. 
To use the platform-specific version of the gem, run `bundle config specific_platform true` and install again. 
remote: Could not find image_optim_pack-0.5.0.20170609 in any of the sources 

が、Herokuのが唯一のインストールバンドルのVARSを設定することができますようにそれはそう(例えば--without )、その記事では、ここで私を助けていません:

https://devcenter.heroku.com/articles/bundler-configuration

質問は:どのように私はHerokuの上trueにplatform_specificを設定することができますか?

答えて

0

問題を解決しました。変数を追加する正しい方法はこのようにそれを記述することです:

In the KEY field: 
BUNDLE_SPECIFIC_PLATFORM 
In the VALUE field: 
true 

を私はバンドラのローカル設定を設定し、私のマシン上のテキストファイルを確認した後、これを気づきました。