Description of problem: When creating new scalabe rails application from the quickstart, the rails app uses sqlite db instead of mysql db. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. rhc app create -a railsapp -t ruby-1.9 2. rhc cartridge add -a railsapp -c mysql-5.5 3. cd railsapp 4. git remote add upstream -m master git://github.com/openshift/rails-example.git 5. git pull -s recursive -X theirs upstream master 6. git push Actual results: Rails quickstart app uses sqlite db instead desired mysql for the production. mode Expected results: Rails quickstart app should be using mysql db. Additional info:
Problem was that in deploy script was a false statement, that prevent RAILS_DB env variable to be set. Fixed in PR: https://github.com/openshift/rails-example/pull/36
Verified in INT(devenv_4223),could create a scalabe rails application from the quickstart successfully,and check env,it's using mysql db. Result: [railsapp-wsunint.int.rhcloud.com 52d5fb496cec0ec2590001f1]\> env|grep RAILS_DB RAILS_DB=mysql