我们的开发计算机ruby
安装了 32 位和 64 位。tzinfo-data
需要指定破坏 Rails 4.2 应用程序的平台。
对于 64 位红宝石,Gemfile
具有:
gem 'tzinfo-data', platforms: [:x64_mingw, :mingw, :mswin]
对于 32 位 ruby,“Gemfile”有:
gem 'tzinfo-data', platforms: [:mingw_20, :mingw, :mswin]
如果在 64 位平台上运行 32 位 ruby 或虎钳,应用程序会爆炸。
如何指定对 32 位和 64 位 ruby 都适用的平台?