Custom mongoid.yml configuration


We have a ruby on rails environment using Mongoid for ORM.

The default mongoid.yml file that gets put in place turns on logging by default. This creates a lot of noise in our builds that when they fail, we can’t see the error that happens. How can I configure it so that we either 1) turn off logging or 2) have a custom mongoid.yml file be used by the build?


You can create a config/ that you disable logging in and do something like this in your circle.yml.

    - cp config/ config/mongoid.yml


Thank you for the reply, we actually had to make the configuration a post: instead of pre: and it worked great!

    - cp config/ config/mongoid.yml 

Thanks again for the reply.