Nginx + passenger + mongoid

When I set the rails_env to production in nginx.conf I get:

Error message:
db_name must be a string or symbol

Forgive me for asking the obvious, but did you set the db_name in the
production area of database.yml?

Check https://github.com/mongoid/mongoid/issues/648