I've written a rails app that's been running fine for a while without a database. Now, I'm dropping the registration database into the mix. It's not working in production. Everything works fine, of course, on my Mac.
Here's the production environment: - Ubuntu Hardy - Phusion Passenger - Rails 2.3.2
MySQL on the machine is running fine.
I have the database.yml file with the correct information. I can run the migrations with no problems:
rake db:migrate RAILS_ENV=production
The database is being correctly updated.
So, I hit tmp/restart and hit the site. I got the 500 error, but nothing was written to the production log (very odd). So, I checked the apache log, and I got this message:
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.
I have installed the MySQL gem (version 2.7). I'm still getting this error.
When I change the production database configuration to point to a dummy sqlite database, everything works fine. When I change it back to the MySQL configuration, I get the same error message.
I'm entirely out of ideas, and I wish that it would just work. I'm pulling my hair out, and I greatly appreciate any help you can provide. I've included everything I could think of, but please let me know if any more information would be useful.
Thanks!
Jason