How can I resolve "Your bundle only supports platforms ["x86-mingw32"] but your local platforms are ["ruby", "x86_64-linux"]"
Run the following two commands on the command line:
bundle lock --add-platform rubybundle lock --add-platform x86_64-linux
This will add the two platforms in Gemfile.lock
I had the same error when deploying to google cloud. But after running these two commands ruby and x86_64-linux were added and the issue was resolved.
For Ruby 2.5.1 I solved this on my VPS by adding also the platforms mentioned in the error message to the platform list section of the gemfile.lock
:
PLATFORMS x86-mingw32 ruby x86_64-linux
Only then, running following commands from app's directory (as already shown in taz's answer)
bundle lock --add-platform rubybundle lock --add-platform x86_64-linux
lead to success.