Authored by hf

code review by fei.hong : do test server remove to AWS modify cache config and domain config

[memcached]
master.hosts=172.31.157.104:12111,172.31.157.105:12111,172.31.157.106:12111
slave.hosts=172.31.157.104:12112,172.31.157.105:12112,172.31.157.106:12112
session.hosts=172.31.157.104:12111,172.31.157.105:12111,172.31.157.106:12111
[redis]
servers.hosts=127.0.0.1:6379
\ No newline at end of file
... ...
[memcached]
master.hosts=192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
slave.hosts=192.168.166.16:12112,192.168.166.17:12112,192.168.166.18:12112
session.hosts=192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
master.hosts=172.31.157.104:12111,172.31.157.105:12111,172.31.157.106:12111
slave.hosts=172.31.157.104:12112,172.31.157.105:12112,172.31.157.106:12112
session.hosts=172.31.157.104:12111,172.31.157.105:12111,172.31.157.106:12111
[redis]
servers.hosts=127.0.0.1:6379
\ No newline at end of file
... ...
... ... @@ -78,6 +78,8 @@ class Bootstrap extends Bootstrap_Abstract
case 'm': // 老版(到频道选择)
case 'buy': // 测试环境的域名, 以后可去掉
case 'login': // 登录
case 'm20160224': // AWS TEST
case 'login20160224': // AWS TEST
break;
case 'new': // 原新版(到男生首页)
$controller = 'Boys';
... ...
[memcached]
master.hosts=172.31.157.104:12111,172.31.157.105:12111,172.31.157.106:12111
slave.hosts=172.31.157.104:12112,172.31.157.105:12112,172.31.157.106:12112
session.hosts=172.31.157.104:12111,172.31.157.105:12111,172.31.157.106:12111
[redis]
servers.hosts=127.0.0.1:6379
\ No newline at end of file
... ...
[memcached]
master.hosts=192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
slave.hosts=192.168.166.16:12112,192.168.166.17:12112,192.168.166.18:12112
session.hosts=192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
master.hosts=172.31.157.104:12111,172.31.157.105:12111,172.31.157.106:12111
slave.hosts=172.31.157.104:12112,172.31.157.105:12112,172.31.157.106:12112
session.hosts=172.31.157.104:12111,172.31.157.105:12111,172.31.157.106:12111
[redis]
servers.hosts=127.0.0.1:6379
\ No newline at end of file
... ...
<?php
use Yaf\Application;
define('SITE_MAIN', 'http://m.yohobuy.com'); // 网站主域名
define('OLD_MAIN', 'http://m.yohobuy.com'); // 网站旧域名
define('COOKIE_DOMAIN', '.yohobuy.com'); // COOKIE作用域
define('SUB_DOMAIN', '.m.yohobuy.com'); // 子域名后缀
define('USE_CACHE', true); // 缓存的开关
define('APPLICATION_PATH', dirname(__DIR__)); // 应用目录
define('ROOT_PATH', dirname(dirname(APPLICATION_PATH))); // 根目录
defined('APPLICATION_ENV') || define('APPLICATION_ENV', 'production');
$application = new Application(APPLICATION_PATH . '/configs/application.production.ini');
$application->bootstrap()->run();
... ...
... ... @@ -2,10 +2,10 @@
use Yaf\Application;
define('SITE_MAIN', 'http://m.yohobuy.com'); // 网站主域名
define('SITE_MAIN', 'http://m20160224.yohobuy.com'); // 网站主域名
define('OLD_MAIN', 'http://m.yohobuy.com'); // 网站旧域名
define('COOKIE_DOMAIN', '.yohobuy.com'); // COOKIE作用域
define('SUB_DOMAIN', '.m.yohobuy.com'); // 子域名后缀
define('SUB_DOMAIN', '.m20160224.yohobuy.com'); // 子域名后缀
define('USE_CACHE', true); // 缓存的开关
define('APPLICATION_PATH', dirname(__DIR__)); // 应用目录
define('ROOT_PATH', dirname(dirname(APPLICATION_PATH))); // 根目录
... ...
... ... @@ -78,6 +78,8 @@ class Bootstrap extends Bootstrap_Abstract
case 'new': // 原新版
case 'dev': // 开发环境
case 'web':
case 'www20160224': // AWS TEST
case 'new20160224': // AWS TEST
break;
case 'search': // 搜索
$module = 'Product';
... ...
[memcached]
master.hosts=172.31.157.104:12111,172.31.157.105:12111,172.31.157.106:12111
slave.hosts=172.31.157.104:12112,172.31.157.105:12112,172.31.157.106:12112
session.hosts=172.31.157.104:12111,172.31.157.105:12111,172.31.157.106:12111
[redis]
servers.hosts=127.0.0.1:6379
\ No newline at end of file
... ...
[memcached]
master.hosts=192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
slave.hosts=192.168.166.16:12112,192.168.166.17:12112,192.168.166.18:12112
session.hosts=192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
master.hosts=172.31.157.104:12111,172.31.157.105:12111,172.31.157.106:12111
slave.hosts=172.31.157.104:12112,172.31.157.105:12112,172.31.157.106:12112
session.hosts=172.31.157.104:12111,172.31.157.105:12111,172.31.157.106:12111
[redis]
servers.hosts=127.0.0.1:6379
\ No newline at end of file
... ...
[memcached]
master.hosts=192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
slave.hosts=192.168.166.16:12112,192.168.166.17:12112,192.168.166.18:12112
session.hosts=192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
[redis]
servers.hosts=127.0.0.1:6379
\ No newline at end of file
... ...
<?php
use Yaf\Application;
define('SITE_MAIN', 'http://www.yohobuy.com'); // 网站主域名
define('OLD_MAIN', 'http://www.yohobuy.com'); // 网站旧域名
define('COOKIE_DOMAIN', '.yohobuy.com'); // COOKIE作用域
define('SUB_DOMAIN', '.yohobuy.com'); // 子域名后缀
define('USE_CACHE', true); // 缓存的开关
define('APPLICATION_PATH', dirname(__DIR__)); // 应用目录
define('ROOT_PATH', dirname(dirname(APPLICATION_PATH))); // 根目录
defined('APPLICATION_ENV') || define('APPLICATION_ENV', 'production');
$application = new Application(APPLICATION_PATH . '/configs/application.production.ini');
$application->bootstrap()->run();
\ No newline at end of file
... ...
<?php
use Yaf\Application;
define('SITE_MAIN', 'http://www.yohobuy.com'); // 网站主域名
define('SITE_MAIN', 'http://www20160224.yohobuy.com'); // 网站主域名
define('OLD_MAIN', 'http://www.yohobuy.com'); // 网站旧域名
define('COOKIE_DOMAIN', '.yohobuy.com'); // COOKIE作用域
define('SUB_DOMAIN', '.yohobuy.com'); // 子域名后缀
... ...