Browse Source

Advanced app template: moved database connection DSN, login and password to -local config not to expose it to VCS

tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
0f87c990f9
  1. 3
      apps/advanced/common/config/params.php
  2. 5
      apps/advanced/environments/dev/common/config/params-local.php
  3. 5
      apps/advanced/environments/prod/common/config/params-local.php

3
apps/advanced/common/config/params.php

@ -20,9 +20,6 @@ return [
'components.db' => [ 'components.db' => [
'class' => 'yii\db\Connection', 'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=yii2advanced',
'username' => 'root',
'password' => '',
'charset' => 'utf8', 'charset' => 'utf8',
], ],
]; ];

5
apps/advanced/environments/dev/common/config/params-local.php

@ -1,3 +1,8 @@
<?php <?php
return [ return [
'components.db' => [
'dsn' => 'mysql:host=localhost;dbname=yii2advanced',
'username' => 'root',
'password' => '',
],
]; ];

5
apps/advanced/environments/prod/common/config/params-local.php

@ -1,3 +1,8 @@
<?php <?php
return [ return [
'components.db' => [
'dsn' => 'mysql:host=localhost;dbname=yii2advanced',
'username' => 'root',
'password' => '',
],
]; ];

Loading…
Cancel
Save