-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
The functionality of scopes will assist you in utilizing multiple environments for a single project. | ||
For instance, suppose you have two branches, 'dev' and 'dev-upgrade'. | ||
The 'dev' branch is intended for delivering updates and fixes to the master branch, while the 'dev-upgrade' branch is used for upgrading your project to a new major version of your platform. | ||
Consequently, these branches may have different versions of PHP, MySQL, Redis, Elasticsearch, etc. | ||
By employing two distinct scopes, you can configure two separate environments for one project. | ||
When switching branches, you can simply change the scope and execute the `madock rebuild` command to apply the new settings. | ||
The database for each scope will also be different. | ||
This functionality will be particularly useful in the case of a major platform update, such as upgrading Magento from version 2.3 to version 2.4 | ||
|
||
The default scope is "default" | ||
|
||
To add a new scope or switch to another scope, execute the command `madock scope:set {scope_name}` | ||
|
||
To display a list of all scopes for the project, use the command `madock scope:list` | ||
|
||
|
||
Scope settings are inherited in this order | ||
madock/projects/{project_name}/config.xml {current scope} - the current scope you created | ||
madock/projects/{project_name}/config.xml {default scope} | ||
madock/projects/{project_name}/config.xml | ||
madock/projects/config.xml | ||
madock/config.xml |