<?php use Lib\Config\DetectEnvironment; /** * Composer */ require_once __DIR__ . '/vendor/autoload.php'; /** * server environment */ $production_server_ips = array('150.60.6.11'); $env = new DetectEnvironment($production_server_ips); // $env->setMode('proxies'); $file = __DIR__ . '/config/' . $env->getName(); $ext = is_file($file . '.php') ? '.php' : '.php.sample'; require $file . $ext; /** * detect debug mode */ const DEBUG = DEBUG_DEFAULT; //const DEBUG = true; ini_set('display_errors', DEBUG); /** * bootstrap */ require_once './bootstrap.php';
<?php use Lib\Config\DetectEnvironment; /** * Composer */ require_once __DIR__ . '/vendor/autoload.php'; /** * server environment */ $production_server_ips = array('192.168.2.172'); $env = new DetectEnvironment($production_server_ips); $env->setMode('proxies'); $file = __DIR__ . '/config/' . $env->getName(); $ext = is_file($file . '.php') ? '.php' : '.php.sample'; require $file . $ext; /** * detect debug mode */ //const DEBUG = DEBUG_DEFAULT; const DEBUG = true; ini_set('display_errors', DEBUG); /** * bootstrap */ require_once './bootstrap.php';