Heroku Removing Gemfile.lock because it was generated on Windows

后端 未结 1 1097
轮回少年
轮回少年 2021-01-05 13:16

Does anyone have any idea about this one? Trying to deploy to heroku. I am able to do a successful launch to heroku but I suspect this warning is probably the reason I get t

相关标签:
1条回答
  • 2021-01-05 13:49

    your Gemfile.lock file likely contains

    PLATFORMS
      ruby
      x86-mingw32
    

    You need to remove

      x86-mingw32
    

    for it to play nicely with heroku. There may be lines in your Gemfile.lock that conflict with removing that, e.g. you might have installed a separate version of the mysql2 gem for windows.

    mysql2 (0.3.11-x86-mingw32)
    mysql2 (0.3.14)
    

    you will likely need to remove the line that references the windows-only version of the gem. And for that to work, you may need to remove the line in your Gemfile that causes bundler to install that gem.

    0 讨论(0)
提交回复
热议问题