Fresh server, installed using the digital ocean guide here.
- Ubuntu 14.04
- Passenger 5.0.18
- Nginx 1.8.0
I can deploy my app to the server via capistrano no problem. I can also load the rails console using RAILS_ENV=production bundle exec rails c
and query User.first
with proper returns.
Nginx doesn't seem to want to connect to the proper database.
Access denied for user 'root'@'XXX.XXX.XXX.XXX' (using password: NO) (Mysql2::Error)
It keeps trying to connect to XXX.XXX.XXX.XXX
which is a local IP instead of YYY.YYY.YYY.YYY
which is a remote RDS server as defined in the database.yml
.
The error page shows RAILS_ENV
is set to production
.