You may need to include the default part as well:
production:
<<: *default
If your password has an @
in it, try encoding it for a URL:
password%40
That could be the thing. Either that or pick a password that's URL-friendly.
As a note, it's usually best to host the database.yml
file for production exclusively on the target server, then symlink it in when you deploy the application.