12345678910111213141516 |
- <?php
- // change the following paths if necessary
- foreach ($_SERVER['argv'] as $k => $v) {
- if (strpos($v, '--YII_ENV=') !== FALSE) {
- $env = substr($v, strlen('--YII_ENV='));
- }
- }
- $yiic=dirname(__FILE__).'/../framework/yiic.php';
- $configFile = dirname(__FILE__)."/config/cache/console.{$env}.php";
- if (! file_exists($configFile)) {
- $configFile=dirname(__FILE__)."/config/console.{$env}.php";;
- }
- $config=$configFile;
- require_once($yiic);
|