Customize environment-specific configuration using env.php in Magento
Magento's env.php file securely manages environment-specific configuration such as database credentials outside version control.
Lesson Content
Magento uses the env.php file to store environment-specific configuration values that aren’t shared from environment to environment. Unlike config.xml files, which contain default module config settings, the env.php file holds potentially sensitive configuration that varies between environments.
Here's what a typical env.php file looks like:
return [
'backend' => [
'frontName' => 'admin'
],
'db' => [
'connection' => [
'default' => [
'host' => 'localhost',
'dbname' => 'magento',...
Join the discussion!
Comments
Want to comment on this lesson?
Enroll in this course to leave comments.