Bug 1052224 - Scaled Rails quickstart don't uses MySQL cartridge
Summary: Scaled Rails quickstart don't uses MySQL cartridge
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Templates
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Jakub Hadvig
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-13 14:06 UTC by Jakub Hadvig
Modified: 2015-05-15 02:26 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-30 00:55:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.