-
Notifications
You must be signed in to change notification settings - Fork 53
DISCUSSION: Streamline configuration of settings.php #293
Comments
Thanks for raising this and for taking the time to consider it and illustrate how you think it might work. It's crossed my mind sooooo many times. Points for consideration:
Overall I'm up for pursuing this, providing it works with Drupal 6, 7 & 8, is opt-in and doesn't clang into any other functionality. @philipnorton42 ? |
Re. inclusion, in my mind that's on the user. This idea is only for local They could use it on non-platform-driven sites to make a settings.php,
|
As another example, our shop runs both a Having said that, it'd be really nice if vlad would generate an appropriate |
I'm noticing a pattern in a team I work with and that I'm trying to get on Vlad; Vlad is so easy that they forget about the specific "last-mile" site configuration that we need, e.g.
local.settings.php
or similar for Pantheon.That said, I'm wondering if we could build a template into Vlad that would generate a
settings.php
file and include basic configuration. I wanted to discuss the idea first.My basic thoughts are:
I chose
settings.local.php
as the default because IIRC this is the pattern that the core.gitignore
uses to ignore all settings files.When Vlad manages the settings file, it would simply include database information. I figure we can probably just generate
$db_url
AND$databases
(in that order), such that Drupal 6 and 7 pick up the one they understand. Drupal 8 looks like it works with Drupal 7's syntax as well.A future idea is another parameter where they specify the Drupal version and we generate a settings file appropriate for it. But the main objective of this feature is to require less of end users and let the ones who know how to set up the site package it up more easily for the rest.
Interested in your thoughts. It's kind of a feature request in that I don't know if I'll be developing it soon, just noticed the need.
The text was updated successfully, but these errors were encountered: