diff --git a/apps/advanced/backstage/config/main.php b/apps/advanced/backstage/config/main.php index 3fb95da..561dae1 100644 --- a/apps/advanced/backstage/config/main.php +++ b/apps/advanced/backstage/config/main.php @@ -14,14 +14,9 @@ return array( 'preload' => array('log'), 'controllerNamespace' => 'app\controllers', 'modules' => array( -// 'debug' => array( -// 'class' => 'yii\debug\Module', -// ) ), 'components' => array( - 'cache' => array( - 'class' => 'yii\caching\FileCache', - ), + 'cache' => $params['components.cache'], 'user' => array( 'class' => 'yii\web\User', 'identityClass' => 'app\models\User', @@ -36,9 +31,6 @@ return array( 'class' => 'yii\logging\FileTarget', 'levels' => array('error', 'warning'), ), -// array( -// 'class' => 'yii\logging\DebugTarget', -// ) ), ), ), diff --git a/apps/advanced/console/config/main.php b/apps/advanced/console/config/main.php index 7af7824..f5e488c 100644 --- a/apps/advanced/console/config/main.php +++ b/apps/advanced/console/config/main.php @@ -9,17 +9,14 @@ $params = array_merge( ); return array( - 'id' => 'bootstrap-console', + 'id' => 'change-me', 'basePath' => dirname(__DIR__), 'preload' => array('log'), - 'controllerPath' => dirname(__DIR__) . '/commands', 'controllerNamespace' => 'app\controllers', 'modules' => array( ), 'components' => array( - 'cache' => array( - 'class' => 'yii\caching\FileCache', - ), + 'cache' => $params['components.cache'], 'log' => array( 'class' => 'yii\logging\Router', 'targets' => array( diff --git a/apps/advanced/environments/dev/backstage/config/main-local.php b/apps/advanced/environments/dev/backstage/config/main-local.php index 5b61b0e..f74bfa3 100644 --- a/apps/advanced/environments/dev/backstage/config/main-local.php +++ b/apps/advanced/environments/dev/backstage/config/main-local.php @@ -1,3 +1,17 @@ array( +// 'debug' => array( +// 'class' => 'yii\debug\Module', +// ), + ), + 'components' => array( + 'log' => array( + 'targets' => array( +// array( +// 'class' => 'yii\logging\DebugTarget', +// ) + ), + ), + ), ); diff --git a/apps/advanced/environments/dev/frontend/config/main-local.php b/apps/advanced/environments/dev/frontend/config/main-local.php index 5b61b0e..b77abed 100644 --- a/apps/advanced/environments/dev/frontend/config/main-local.php +++ b/apps/advanced/environments/dev/frontend/config/main-local.php @@ -1,3 +1,17 @@ array( +// 'debug' => array( +// 'class' => 'yii\debug\Module', +// ), + ), + 'components' => array( + 'log' => array( + 'targets' => array( +// array( +// 'class' => 'yii\logging\DebugTarget', +// ) + ), + ), + ), ); diff --git a/apps/advanced/environments/prod/backstage/config/main-local.php b/apps/advanced/environments/prod/backstage/config/main-local.php new file mode 100644 index 0000000..5b61b0e --- /dev/null +++ b/apps/advanced/environments/prod/backstage/config/main-local.php @@ -0,0 +1,3 @@ +run(); diff --git a/apps/advanced/environments/prod/common/config/params-local.php b/apps/advanced/environments/prod/common/config/params-local.php new file mode 100644 index 0000000..2670143 --- /dev/null +++ b/apps/advanced/environments/prod/common/config/params-local.php @@ -0,0 +1,3 @@ +run(); diff --git a/apps/advanced/environments/prod/yii b/apps/advanced/environments/prod/yii new file mode 100644 index 0000000..395aede --- /dev/null +++ b/apps/advanced/environments/prod/yii @@ -0,0 +1,25 @@ +#!/usr/bin/env php +run(); diff --git a/apps/advanced/frontend/config/main.php b/apps/advanced/frontend/config/main.php index 9379e06..561dae1 100644 --- a/apps/advanced/frontend/config/main.php +++ b/apps/advanced/frontend/config/main.php @@ -9,19 +9,14 @@ $params = array_merge( ); return array( - 'id' => 'bootstrap', + 'id' => 'change-me', 'basePath' => dirname(__DIR__), 'preload' => array('log'), 'controllerNamespace' => 'app\controllers', 'modules' => array( -// 'debug' => array( -// 'class' => 'yii\debug\Module', -// ) ), 'components' => array( - 'cache' => array( - 'class' => 'yii\caching\FileCache', - ), + 'cache' => $params['components.cache'], 'user' => array( 'class' => 'yii\web\User', 'identityClass' => 'app\models\User', @@ -36,9 +31,6 @@ return array( 'class' => 'yii\logging\FileTarget', 'levels' => array('error', 'warning'), ), -// array( -// 'class' => 'yii\logging\DebugTarget', -// ) ), ), ),