This forum is no longer active. Please post your questions to our new community site
Passenger with remote MySQL
|
|
I’ve installed RubyStack-2.0-1 on Ubuntu 9.10 running within Amazon EC2 server. My rails app is using the Amazon RDS service. Everything works with Mongrel, but Passenger trys to use the local MySQL rather than the remote server. What am I missing? Shouldn’t the database.yml of the rails app define both Mongrel and Passenger? Thanks in advance, |
|
|
Hi, can you please copy&paste your database.yml file here ? Do you use the same RAILS_ENV setting for both Mongrel and Passenger ? Cheers, |
|
|
Yes, using the same app and database.yml for both mongrel and passenger configurations, so don’t understand why it would be different. Here’s the database.yml with the names and pwd edited out. Nothing unusual, and it works for mongrel, but passenger gives an error that it can’t connect with tmp/mysql.sock which is the local copy.
test: production: |
|
|
You know Passenger runs with RAILS_ENV=production by default ? Are you changing this default behavior in Apache config file ? Danoo |
|
|
Thanks for the comment, and no, I am not changing it in the Apache file. Are you recommending I should? |
|
|
Thanks for the suggestion, adding the RailsEnv setting to the Apache VirtualHost seemed to fix the strange passenger errors. |

