-
Notifications
You must be signed in to change notification settings - Fork 396
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
Adding support for config_split. #1102
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
2130430
Adding support for config_split.
grasmash 909f0f3
Fixing typo in cm.strategy.
grasmash 76f2500
Exporting config after initial install.
grasmash 71b3291
Adding docroot arg to drush config-export.
grasmash 5d9deec
Adding -y flag.
grasmash b2b2697
Adding config_split default to template.
grasmash 416d1b0
Fixing var names.~
grasmash 86f7cb9
Refactoring for config_split beta4.
grasmash 4d07525
Fixing testing.
grasmash fffd1db
Disabling alias creation.
grasmash ec1551f
Fixing file path.
grasmash 4f0e34f
Correcting target call.
grasmash d2a49c4
Enabling config split and re-exporting config.
grasmash 0cbeee7
Speeding it up.
grasmash d45ffbb
Fix drush call.
grasmash File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
uuid: 439a15f4-c89c-4267-b673-f8855b5bb0bf | ||
langcode: en | ||
status: true | ||
dependencies: { } | ||
id: ci | ||
label: CI | ||
folder: ../config/ci | ||
module: { } | ||
theme: { } | ||
blacklist: { } | ||
graylist: { } | ||
graylist_dependents: true | ||
graylist_skip_equal: true | ||
weight: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
// Ensure the appropriate config split is enabled. | ||
$config['config_split.config_split.local']['status'] = FALSE; | ||
$config['config_split.config_split.dev']['status'] = FALSE; | ||
$config['config_split.config_split.stage']['status'] = FALSE; | ||
$config['config_split.config_split.prod']['status'] = FALSE; | ||
$config['config_split.config_split.ci']['status'] = FALSE; | ||
if ($is_local_env) { | ||
if (getenv('TRAVIS')) { | ||
$config['config_split.config_split.ci']['status'] = TRUE; | ||
} | ||
else { | ||
$config['config_split.config_split.local']['status'] = TRUE; | ||
} | ||
} | ||
elseif ($is_ah_dev_env) { | ||
$config['config_split.config_split.dev']['status'] = TRUE; | ||
} | ||
elseif ($is_ah_stage_env) { | ||
$config['config_split.config_split.stage']['status'] = TRUE; | ||
} | ||
elseif ($is_ah_prod_env) { | ||
$config['config_split.config_split.prod']['status'] = TRUE; | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@grasmash - There are no extra settings for RA (many subscriptions have an
ra
environment as well). Do you think that might be something to add? Or just note that people should add an ra-specific split in their own settings.php if they need it?One other note—for my sites I'm currently using a
test
split (notstage
) to match the fact that Acquia Cloud still usestest
as the machine name for theStage
environment... for those projects who are already set up using this kind of naming convention, I'll try to document how to switch the split name correctly. Just wanted to put that out there.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.
I'm also using
test
(mainly because that's what canary does... I haven't tested to see how it works yet).Besides RA, a project could have any number of custom environments (typically
dev1
,dev2
, etc... but they could be named anything). I think it would be awesome if we could create this configuration automatically, or as part of a wizard (i.e. "here are the typical environments, do you have any others?"). Short of that, just documenting it would be good.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.
@danepowell - Also, ODE could throw a wrinkle depending on how you structure your config... it might be nice to say "any non-prod environment gets split
xyz
"...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.
Also see my notes-in-progress here: #965 (comment)