php Platform.sh提供的Magento 2 Env.php配置文件
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php Platform.sh提供的Magento 2 Env.php配置文件相关的知识,希望对你有一定的参考价值。
<?php
return array (
'backend' =>
array (
'frontName' => 'admin',
),
'crypt' =>
array (
'key' => '2c4f7c9688dc808fe2e23935f7eeb255',
),
'session' =>
array (
'save' => 'redis',
'redis' =>
array (
'host' => 'redis-session',
'port' => 6379,
'database' => '0',
),
),
'db' =>
array (
'table_prefix' => '',
'connection' =>
array (
'default' =>
array (
'host' => 'db',
'dbname' => 'magento',
'username' => 'root',
'password' => 'root',
'model' => 'mysql4',
'engine' => 'innodb',
'initStatements' => 'SET NAMES utf8;',
'active' => '1',
),
'indexer' =>
array (
'username' => 'root',
'host' => 'db',
'dbname' => 'magento',
'password' => 'root',
),
),
),
'resource' =>
array (
'default_setup' =>
array (
'connection' => 'default',
),
),
'x-frame-options' => 'SAMEORIGIN',
'MAGE_MODE' => 'developer',
'cache_types' =>
array (
'config' => 1,
'layout' => 1,
'block_html' => 1,
'collections' => 1,
'reflection' => 1,
'db_ddl' => 1,
'eav' => 1,
'customer_notification' => 1,
'full_page' => 1,
'config_integration' => 1,
'config_integration_api' => 1,
'translate' => 1,
'config_webservice' => 1,
'compiled_config' => 1,
'target_rule' => 1,
),
'install' =>
array (
'date' => 'Thu, 05 Jan 2017 22:49:50 +0000',
),
'cache' =>
array (
'frontend' =>
array (
'default' =>
array (
'backend' => 'Cm_Cache_Backend_Redis',
'backend_options' =>
array (
'server' => 'redis',
'port' => 6379,
'database' => '1',
),
),
'page_cache' =>
array (
'backend' => 'Cm_Cache_Backend_Redis',
'backend_options' =>
array (
'server' => 'redis',
'port' => 6379,
'database' => '1',
),
),
),
),
);
以上是关于php Platform.sh提供的Magento 2 Env.php配置文件的主要内容,如果未能解决你的问题,请参考以下文章
在platform.sh为Symfony 3项目配置smtp
Magento 2中文手册教程 - Magento 2 安装流程图