Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
4a9f0eed
Commit
4a9f0eed
authored
May 24, 2013
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved commented sections into -local configs, added prod environment
parent
fb1013e6
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
112 additions
and
24 deletions
+112
-24
main.php
apps/advanced/backstage/config/main.php
+1
-9
main.php
apps/advanced/console/config/main.php
+2
-5
main-local.php
...advanced/environments/dev/backstage/config/main-local.php
+14
-0
main-local.php
.../advanced/environments/dev/frontend/config/main-local.php
+14
-0
main-local.php
...dvanced/environments/prod/backstage/config/main-local.php
+3
-0
params-local.php
...anced/environments/prod/backstage/config/params-local.php
+4
-0
index.php
apps/advanced/environments/prod/backstage/www/index.php
+14
-0
params-local.php
...advanced/environments/prod/common/config/params-local.php
+4
-0
main-local.php
.../advanced/environments/prod/console/config/main-local.php
+3
-0
params-local.php
...dvanced/environments/prod/console/config/params-local.php
+4
-0
main-local.php
...advanced/environments/prod/frontend/config/main-local.php
+3
-0
params-local.php
...vanced/environments/prod/frontend/config/params-local.php
+4
-0
index.php
apps/advanced/environments/prod/frontend/www/index.php
+15
-0
yii
apps/advanced/environments/prod/yii
+25
-0
main.php
apps/advanced/frontend/config/main.php
+2
-10
No files found.
apps/advanced/backstage/config/main.php
View file @
4a9f0eed
...
...
@@ -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',
// )
),
),
),
...
...
apps/advanced/console/config/main.php
View file @
4a9f0eed
...
...
@@ -9,17 +9,14 @@ $params = array_merge(
);
return
array
(
'id'
=>
'
bootstrap-consol
e'
,
'id'
=>
'
change-m
e'
,
'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
(
...
...
apps/advanced/environments/dev/backstage/config/main-local.php
View file @
4a9f0eed
<?php
return
array
(
'modules'
=>
array
(
// 'debug' => array(
// 'class' => 'yii\debug\Module',
// ),
),
'components'
=>
array
(
'log'
=>
array
(
'targets'
=>
array
(
// array(
// 'class' => 'yii\logging\DebugTarget',
// )
),
),
),
);
apps/advanced/environments/dev/frontend/config/main-local.php
View file @
4a9f0eed
<?php
return
array
(
'modules'
=>
array
(
// 'debug' => array(
// 'class' => 'yii\debug\Module',
// ),
),
'components'
=>
array
(
'log'
=>
array
(
'targets'
=>
array
(
// array(
// 'class' => 'yii\logging\DebugTarget',
// )
),
),
),
);
apps/advanced/environments/prod/backstage/config/main-local.php
0 → 100644
View file @
4a9f0eed
<?php
return
array
(
);
apps/advanced/environments/prod/backstage/config/params-local.php
0 → 100644
View file @
4a9f0eed
<?php
return
array
(
);
\ No newline at end of file
apps/advanced/environments/prod/backstage/www/index.php
0 → 100644
View file @
4a9f0eed
<?php
// comment out the following line to disable debug mode
defined
(
'YII_DEBUG'
)
or
define
(
'YII_DEBUG'
,
false
);
require
(
__DIR__
.
'/../../vendor/yiisoft/yii2/yii/Yii.php'
);
require
(
__DIR__
.
'/../../vendor/autoload.php'
);
$config
=
yii\helpers\ArrayHelper
::
merge
(
require
(
__DIR__
.
'/../config/main.php'
),
require
(
__DIR__
.
'/../config/main-local.php'
)
);
$application
=
new
yii\web\Application
(
$config
);
$application
->
run
();
apps/advanced/environments/prod/common/config/params-local.php
0 → 100644
View file @
4a9f0eed
<?php
return
array
(
);
\ No newline at end of file
apps/advanced/environments/prod/console/config/main-local.php
0 → 100644
View file @
4a9f0eed
<?php
return
array
(
);
apps/advanced/environments/prod/console/config/params-local.php
0 → 100644
View file @
4a9f0eed
<?php
return
array
(
);
\ No newline at end of file
apps/advanced/environments/prod/frontend/config/main-local.php
0 → 100644
View file @
4a9f0eed
<?php
return
array
(
);
apps/advanced/environments/prod/frontend/config/params-local.php
0 → 100644
View file @
4a9f0eed
<?php
return
array
(
);
\ No newline at end of file
apps/advanced/environments/prod/frontend/www/index.php
0 → 100644
View file @
4a9f0eed
<?php
// comment out the following line to disable debug mode
defined
(
'YII_DEBUG'
)
or
define
(
'YII_DEBUG'
,
false
);
require
(
__DIR__
.
'/../../vendor/yiisoft/yii2/yii/Yii.php'
);
require
(
__DIR__
.
'/../../vendor/autoload.php'
);
$config
=
yii\helpers\ArrayHelper
::
merge
(
require
(
__DIR__
.
'/../config/main.php'
),
require
(
__DIR__
.
'/../config/main-local.php'
)
);
$application
=
new
yii\web\Application
(
$config
);
$application
->
run
();
apps/advanced/environments/prod/yii
0 → 100644
View file @
4a9f0eed
#!/usr/bin/env php
<?php
/**
* Yii console bootstrap file.
*
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
defined
(
'YII_DEBUG'
)
or
define
(
'YII_DEBUG'
,
false
);
// fcgi doesn't have STDIN defined by default
defined
(
'STDIN'
)
or
define
(
'STDIN'
,
fopen
(
'php://stdin'
,
'r'
));
require
(
__DIR__
.
'/vendor/yiisoft/yii2/yii/Yii.php'
);
require
(
__DIR__
.
'/vendor/autoload.php'
);
$config
=
yii\helpers\ArrayHelper
::
merge
(
require
(
__DIR__
.
'/console/config/main.php'
),
require
(
__DIR__
.
'/console/config/main-local.php'
)
);
$application
=
new
yii\console\Application
(
$config
);
$application
->
run
();
apps/advanced/frontend/config/main.php
View file @
4a9f0eed
...
...
@@ -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',
// )
),
),
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment