-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Config Split and Updates Log #348
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,14 +19,16 @@ | |
"composer/installers": "^2.1", | ||
"cweagans/composer-patches": "^1.7", | ||
"drupal/admin_toolbar": "^3.3", | ||
"drupal/config_split": "^2.0@RC", | ||
"drupal/core-composer-scaffold": "^10.0", | ||
"drupal/core-recommended": "^10.0", | ||
"drupal/monolog": "^3.0@beta", | ||
"drupal/simplei": "^2.0@beta", | ||
"drush/drush": "^11.4", | ||
"vlucas/phpdotenv": "^5.4", | ||
"webflo/drupal-finder": "^1.2", | ||
"wunderio/drupal-ping": "^2.4" | ||
"wunderio/drupal-ping": "^2.4", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we can also remove Warden because it's new projects that start using it? @tormi There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes! |
||
"wunderio/updates_log": "^2" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I noticed there's this profile web/profiles/custom/basic/basic.info.yml Is it supposed to be used during fresh Drupal projects? Should we enable the updates_log there? It had one bug that it could not find CKEditor atm. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This has been on hold for a while. My position is that we should remove the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's continue using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Very good question, @hkirsman! I think we could even remove this custom
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We're using recipes in our https://github.com/wunderio/next-drupal-starterkit template and it seems to be working well. Perhaps we should introduce it here as well? |
||
}, | ||
"require-dev": { | ||
"drupal/core-dev": "^10.0", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,17 +42,28 @@ | |
'bower_components', | ||
]; | ||
|
||
// $settings['updates_log_site'] = 'my-project-name'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't there also be section in readme for getting this up and running? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ragnarkurmwunder, I propose we leave |
||
// In Silta it is set by default as github repo name. | ||
|
||
// $settings['updates_log_env'] = getenv('ENVIRONMENT_NAME'); | ||
// In Silta it is set by default as ENVIRONMENT_NAME | ||
|
||
// $settings['updates_log_disabled'] = TRUE; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's not bring that double negation variable into the template! Instead, let's implement |
||
// In case config_split is missing. | ||
|
||
// Environment-specific settings. | ||
$env = $_ENV['ENVIRONMENT_NAME']; | ||
switch ($env) { | ||
case 'production': | ||
$settings['simple_environment_indicator'] = 'DarkRed Production'; | ||
// Warden settings. | ||
$config['warden.settings']['warden_token'] = $_ENV['WARDEN_TOKEN']; | ||
// $settings['updates_log_disabled'] = FALSE; | ||
// In case config_split is missing. | ||
break; | ||
|
||
case 'main': | ||
$settings['simple_environment_indicator'] = 'DarkBlue Stage'; | ||
// $settings['updates_log_disabled'] = FALSE; | ||
// In case config_split is missing. | ||
break; | ||
|
||
case 'local': | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be replaced now with
2.0
, https://www.drupal.org/project/config_split/releases/2.0.0There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're introducing
config_split
component here, but without any settings & configs. I think we should at least add relevant settings insettings.php
and related documentation.