Bug 1052224

Summary: Scaled Rails quickstart don't uses MySQL cartridge
Product: OpenShift Online Reporter: Jakub Hadvig <jhadvig>
Component: TemplatesAssignee: Jakub Hadvig <jhadvig>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.xCC: wsun
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-30 00:55:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jakub Hadvig 2014-01-13 14:06:00 UTC
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:

Comment 1 Jakub Hadvig 2014-01-14 13:26:12 UTC
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

Comment 2 Wei Sun 2014-01-15 03:21:38 UTC
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