📝 Added a few sections for the env.php#70
📝 Added a few sections for the env.php#70DavidLambauer wants to merge 2 commits intomage-os:mainfrom
Conversation
cmuench
left a comment
There was a problem hiding this comment.
I added some comments...
| The `app/etc/env.php` file is pivotal for environment-specific configurations. It stores settings such as database | ||
| connection information, backend front name, cryptographic key, and more. | ||
|
|
||
| ### Database Connection |
There was a problem hiding this comment.
We could description the replication setup here as well. Maybe as separate chapter?
This is an example config:
return array (
//...
'db' =>
array (
'connection' =>
array (
'indexer' =>
array (
'host' => 'default-master-host',
'dbname' => 'magento',
'username' => 'magento',
'password' => 'magento',
'active' => '1',
'persistent' => NULL,
),
'default' =>
array (
'host' => 'default-master-host',
'dbname' => 'magento',
'username' => 'magento',
'password' => 'magento',
'active' => '1',
),
'checkout' =>
array (
'host' => 'checkout-master-host',
'dbname' => 'checkout',
'username' => 'magento',
'password' => 'magento',
'model' => 'mysql4',
'engine' => 'innodb',
'initStatements' => 'SET NAMES utf8;',
'active' => '1',
),
'sales' =>
array (
'host' => 'sales-master-host',
'dbname' => 'sales',
'username' => 'magento',
'password' => 'magento',
'model' => 'mysql4',
'engine' => 'innodb',
'initStatements' => 'SET NAMES utf8;',
'active' => '1',
),
),
'slave_connection' =>
array (
'default' =>
array (
'host' => 'default-slave-host',
'dbname' => 'magento',
'username' => 'read_only',
'password' => 'password',
'active' => '1',
),
'checkout' =>
array (
'host' => 'checkout-slave-host',
'dbname' => 'checkout',
'username' => 'read_only',
'password' => 'password',
'model' => 'mysql4',
'engine' => 'innodb',
'initStatements' => 'SET NAMES utf8;',
'active' => '1',
),
'sales' =>
array (
'host' => 'sales-slave-host',
'dbname' => 'sales',
'username' => 'read_only',
'password' => 'password',
'model' => 'mysql4',
'engine' => 'innodb',
'initStatements' => 'SET NAMES utf8;',
'active' => '1',
),
),
'table_prefix' => '',
),
//.......
There was a problem hiding this comment.
That's definitely worth its own chapter, yes
There was a problem hiding this comment.
@DavidLambauer would you like to add the chapter to this .md file or to another one? In the latter, can I consider this thread as closed in order to move on with the merge? Thank you guys!
|
|
||
| Magento 2, a versatile eCommerce platform, offers extensive configurability to meet the needs of developers. This | ||
| document discusses the fundamental configuration in Magento 2, focusing on `app/etc/env.php`, `app/etc/config.php`, | ||
| `core_config_data` table, `config.xml`, and managing configuration programmatically. |
There was a problem hiding this comment.
The ENV variable config option is missing in the list here.
There was a problem hiding this comment.
@DavidLambauer could you add this small missing part so that we can review and merge this PR? thank you!
|
@nikolalardev would you want to pick this PR up? ❤️ do you think it still makes sense today? otherwise I'd close it. |
No description provided.