我正在windows上进行开发,并使用image_optim和image_optim_pack宝石。以前,把这些东西推给Heroku并不是什么问题,一切都正常地解决了。现在我得到一个新的警告和生产失败:
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上设置env var以允许这样做,但似乎Heroku只允许为包安装设置vars (例如--如果没有),他们在这里的文章对我没有帮助:
https://devcenter.heroku.com/articles/bundler-configuration
问题:我如何在Heroku上将platform_specific设置为true?
发布于 2017-06-27 00:50:12
问题解决了。添加变量的正确方法是这样编写它:
In the KEY field:
BUNDLE_SPECIFIC_PLATFORM
In the VALUE field:
true在为bundler设置本地配置并检查机器上的文本文件后,我注意到了这一点。
https://stackoverflow.com/questions/44756159
复制相似问题