Logo

Command Palette

Search for a command to run...

Manually managing database configurations for Rails

How to stop Cloud 66 from automatically updating configurations for managed databases

If your Rails application uses a MySQL, Postgres or MongoDB instance that is managed by Cloud 66, then we will (by default) automatically amend your database configuration file (specifically database.yml or mongoid.yml). If we don't detect a database configuration file, we will generate one.

We will automatically apply these changes during your deployment.

Disabling automated config updates

If you would prefer to manage these configurations manually you can achieve this using your Manifest file.

This will prevent our system from making any automated changes to the configuration files (including database.yml). You can set this either globally, or per database.

Example of global setting

rails:
	configuration:
		tamper_with_yml: false

Examples per database

The location of this setting depends on the database type. For example:

MySQL

  mysql:
    configuration:
      tamper_with_yml: false

Postgres

  postgresql:
    configuration:
      tamper_with_yml: false

MongoDB

  mongodb:
    configuration:
      tamper_with_yml: false