In a Gist I've captured a typical settings.php setup that is used when we set up a new site at Lil Engine. In future articles I will look at specific techniques that extend on this example.
You'll notice that it assumes Platform.sh hosting and Lando local dev, while being very explicit which setup is being used. This is because we work with a variety of vendors, teams and hosting platforms.
The basic structure is:
- settings.php - includes/ --- default.settings.php --- default.services.yml --- lando.settings.php --- lando.services.yml --- local.settings.php (optional, not in Git) --- local.service.yml (optional, not in Git) --- platform.settings.php