Reputation: 13
I am new to cloudfoundry and rails, I am trying to deploy a new application to cloudfoundry, and I got this error:
====> /logs/migration.log <====
←[31mYou have requested:
mysql2 ~> 0.3.11
The bundle currently has mysql2 locked at 0.3.11.
Try running `bundle update mysql2`←[0m
I downloaded a few rails samples from here: https://github.com/cloudfoundry-samples with the same results.
I already tried 'bundle update mysql2'
If I push a simple ruby app that requires the gem mysql2 it works fine.
I am using windows 7 x64.
Any ideas?
Thanks.
Upvotes: 1
Views: 406
Reputation: 1149
There is an issue with deploying ruby apps bundled on Windows to CloudFoundry.com (which is Linux-based). The workaround is to modify your Gemfile.lock and delete occurrences of the string -x86-mingw32
. Then re-push the app to Cloud Foundry.
Upvotes: 2
Reputation: 3984
can you confirm that you have run;
bundle update
bundle package
before using VMC to push the application.
Upvotes: 0