webbynode / webbynode

Webbynode automation tool. You can deploy Django and WSGI, PHP, Rack, Rails 2 and Rails 3 applications to your Webby prepared with Webbynode Rapid Deployment engine.
http://webbynode.com
40 stars 8 forks source link

mysql2 gem not being used #61

Open mlr opened 13 years ago

mlr commented 13 years ago

I'm trying to use the mysql2 gem which was discussed here and support was added with this commit.

When trying to pushing my application using webbynode push, the database.yml file generated does not use adapter: mysql2, but rather adapter: mysql

I also get these error messages:

remote:   -----------------------------------------------------
remote:     There was an error migrating database:
remote: 
remote:      rake aborted!
remote:      !!! Missing the mysql2 gem. Add it to your Gemfile: gem 'mysql2'
remote:      
remote:      (See full trace by running task with --trace)
remote:      (in /var/apps/kcshrm)
remote: 
remote:     Please fix this problem and run wn push again.
remote:   -----------------------------------------------------

Am I missing something here? My Gemfile already contains gem 'mysql2' Is anyone else having this problem? This is my Gemfile:

source 'http://rubygems.org'

gem 'rails', '3.0.6'
gem 'mysql2'
romul commented 13 years ago

I have the same issue.

source 'http://rubygems.org'

gem 'rails', '3.0.5'
gem 'mysql2'
jimjeffers commented 13 years ago

I'm having the same problem! Has anyone resolved this?

source 'http://rubygems.org'

gem 'rails', '3.0.7' gem 'mysql2'

jimjeffers commented 13 years ago

I found the problem. The database.yml is incorrectly using mysql instead of mysql2. You need to ssh into your webby and update the database.yml to use 'mysql2' instead of 'mysql' as the adapter.

msanterre commented 12 years ago

I'm also getting this problem. Will this be fixed soon?

CoffeeAndCode commented 12 years ago

any news?