Customizing settings.php
Background
"Sites Folder"
Aegir was designed around multi-site. Because of this, it always uses the domain-specific "sites folder" for settings, files and backups.
Be aware that the sites/default/settings.php
file is not used at all.
Do not edit Settings.php.
Do not write changes directly to your site's settings.php
file. It is written automatically.
Settings.php includes
To allow users to make customizations to settings.php, aegir and devshop include certain files from elsewhere.
To see exactly what files are included, you can open a working settings.php file for a working environment.
Possible include files:
sites/all/settings.devshop.php
sites/default/settings.devshop.php
sites/ENVIRONMENT.PROJECT.DEVMASTER-HOSTNAME/local.settings.php
DevShop Project and Environment Variables
A server environment variable is written in settings.php. You can check them if you need environment-specific settings.
For example, you can disable all caches in all environments except for production:
Remote Servers
If you are using Remote Servers to host your sites, please be aware of the Verify/RSYNC System.
All code is stored on the server_master, and is copied to remote servers via RSYNC during the provision-verify
command.
This Rsync will also delete files if they are removed from server_master.
When modifying settings.php using these includes, do so on the server_master server (or in your git repository.). Then, Verify the environment. The Verify task will copy the custom settings to remote server.
Last updated