Initial commit
This commit is contained in:
16
environments/dev/common/config/codeception-local.php
Normal file
16
environments/dev/common/config/codeception-local.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
return yii\helpers\ArrayHelper::merge(
|
||||
require __DIR__ . '/main.php',
|
||||
require __DIR__ . '/main-local.php',
|
||||
require __DIR__ . '/test.php',
|
||||
require __DIR__ . '/test-local.php',
|
||||
[
|
||||
'components' => [
|
||||
'request' => [
|
||||
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
|
||||
'cookieValidationKey' => '',
|
||||
],
|
||||
],
|
||||
]
|
||||
);
|
||||
23
environments/dev/common/config/main-local.php
Normal file
23
environments/dev/common/config/main-local.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'components' => [
|
||||
'db' => [
|
||||
'class' => \yii\db\Connection::class,
|
||||
'dsn' => 'mysql:host=mysql;dbname=app',
|
||||
'username' => 'app',
|
||||
'password' => '123',
|
||||
'charset' => 'utf8',
|
||||
],
|
||||
'queue' => [
|
||||
'class' => \yii\queue\sync\Queue::class,
|
||||
'handle' => true, // whether tasks should be executed immediately
|
||||
],
|
||||
'mailer' => [
|
||||
'class' => \yii\symfonymailer\Mailer::class,
|
||||
'viewPath' => '@common/mail',
|
||||
// send all mails to a file by default.
|
||||
'useFileTransport' => true,
|
||||
],
|
||||
],
|
||||
];
|
||||
8
environments/dev/common/config/params-local.php
Normal file
8
environments/dev/common/config/params-local.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'company_name' => 'Five Devs',
|
||||
'product_name' => 'Calorie',
|
||||
'sonar.url' => 'https://yourname.sonar.software', # no trailing slash
|
||||
'sonar.bearerToken' => '',
|
||||
];
|
||||
9
environments/dev/common/config/test-local.php
Normal file
9
environments/dev/common/config/test-local.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'components' => [
|
||||
'db' => [
|
||||
'dsn' => 'mysql:host=localhost;dbname=yii2advanced_test',
|
||||
],
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user