index-test.php 1.12 KB
<?php
use Yaf\Application;

define('SITE_MAIN', '//www.yohobuy.com'); // 网站主域名
define('OLD_MAIN', '//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', 'testing');

define('EXHIBITION_TICKET', 51335912);//展览票skn

define('USE_INTER_FACE_SHUNT', false);//分流开关

define('API_URL', getenv('TEST_API') ? getenv('TEST_API') : 'http://api-test3.yohops.com:9999/');
define('SERVICE_URL', getenv('TEST_SERVICE') ? getenv('TEST_SERVICE') : 'http://service-test3.yohops.com:9999/');
define('YOHOBUY_URL', 'http://www.yohobuy.com/');
define('SERVICE_NOTIFY', 'http://service-test3.yohops.com:9999/');
define('API_OLD', 'http://test2.open.yohobuy.com/');

$application = new Application(APPLICATION_PATH . '/configs/application.testing.ini');
$application->bootstrap()->run();