Pedro Ramírez
Pedro Ramírez

Reputation: 13

cloudfoundry rails 3.2.3 ruby 1.9 deploy error

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

Answers (2)

Glenn Oppegard
Glenn Oppegard

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

Dan Higham
Dan Higham

Reputation: 3984

can you confirm that you have run;

bundle update
bundle package

before using VMC to push the application.

Upvotes: 0

Related Questions