Browse Source

Environment fix

master
Egorka 6 years ago
parent
commit
b5e3f93e4a
  1. 5
      environments/dev/common/config/main-local.php
  2. 18
      environments/dev/common/config/params-local.php
  3. 5
      environments/prod/common/config/main-local.php
  4. 18
      environments/prod/common/config/params-local.php
  5. 2
      setup.php

5
environments/dev/common/config/main-local.php

@ -3,8 +3,9 @@ return [
'components' => [
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=database',
'username' => 'root',
//'dsn' => 'mysql:host=localhost;dbname=database',
'dsn' => '',
'username' => '',
'password' => '',
'charset' => 'utf8',
],

18
environments/dev/common/config/params-local.php

@ -1,13 +1,21 @@
<?php
return [
'cookieValidationKey' => '',
'cookieDomain' => '',
'staticPath' => dirname(__DIR__, 2) . '/static',
'frontendHostInfo' => '',
'backendHostInfo' => '',
'staticHostInfo' => '',
'supportEmail' => '',
'adminEmail' => '',
'mailChimpKey' => '',
'mailChimpListId' => '',
];
/*
'cookieDomain' => '.morework.local',
'staticPath' => dirname(__DIR__, 2) . '/static',
'frontendHostInfo' => 'http://morework.local',
'backendHostInfo' => 'http://admin.morework.local',
'staticHostInfo' => 'http://static.morework.local',
'supportEmail' => 'support@morework.local',
'adminEmail' => 'admin@morework.local',
'mailChimpKey' => '',
'mailChimpListId' => '',
];
*/

5
environments/prod/common/config/main-local.php

@ -3,8 +3,9 @@ return [
'components' => [
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=morework',
'username' => 'root',
//'dsn' => 'mysql:host=localhost;dbname=morework',
'dsn' => '',
'username' => '',
'password' => '',
'charset' => 'utf8',
],

18
environments/prod/common/config/params-local.php

@ -1,13 +1,21 @@
<?php
return [
'cookieValidationKey' => '',
'cookieDomain' => '',
'staticPath' => dirname(__DIR__, 2) . '/static',
'frontendHostInfo' => '',
'backendHostInfo' => '',
'staticHostInfo' => '',
'supportEmail' => '',
'adminEmail' => '',
'mailChimpKey' => '',
'mailChimpListId' => '',
];
/*
'cookieDomain' => '.morework.local',
'staticPath' => dirname(__DIR__, 2) . '/static',
'frontendHostInfo' => 'http://morework.local',
'backendHostInfo' => 'http://admin.morework.local',
'staticHostInfo' => 'http://static.morework.local',
'supportEmail' => 'support@morework.local',
'adminEmail' => 'admin@morework.local',
'mailChimpKey' => '',
'mailChimpListId' => '',
];
*/

2
setup.php

@ -42,7 +42,7 @@ class Setup
'Database name must be set' => 'Название базы не должно быть пустым',
'User: ' => 'Пользователь: ',
'User must be set' => 'Имя пользователя не должно быть пустым',
'Password: ' => 'Пароль',
'Password: ' => 'Пароль: ',
'Set your HTTP protocol (http/https)' => 'Укажите HTTP протокол (http/https)',
'HTTP Protocol [http]: ' => 'HTTP протокол [http]: ',
'Website domain name' => 'Домен сайта',

Loading…
Cancel
Save