init #4

Merged
mironov merged 3 commits from init into main 2024-07-05 10:29:58 +03:00
7 changed files with 6349 additions and 3 deletions
Showing only changes of commit c53235a18c - Show all commits

7
.gitignore vendored
View File

@ -41,3 +41,10 @@ phpunit.phar
/backend/web/index.php
/backend/web/index-test.php
/backend/web/robots.txt
#composer
composer.lock
#docker
/docker/logs/nginx
/docker/logs/mysql

View File

@ -74,9 +74,9 @@ backend: [admin.web.local](http://admin.web.local)
Url stage:
frontend: [example.webeffector.ru](https://example.webeffector.ru)
frontend: [dev-php.webeffector.net/](https://dev-php.webeffector.net/)
backend: [admin-example.webeffector.ru](https://admin-example.webeffector.ru)
backend: [admin-dev-php.webeffector.net/](https://admin-dev-php.webeffector.net/)
Test data for stage/dev:

View File

@ -1,4 +1,11 @@
<?php
use yii\i18n\Formatter;
use yii\rbac\DbManager;
use yii\caching\FileCache;
use yii\caching\DummyCache;
use yii\i18n\PhpMessageSource;
return [
'aliases' => [
'@bower' => '@vendor/bower-asset',
@ -6,8 +13,46 @@ return [
],
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
'components' => [
'formatter' => [
'class' => Formatter::class,
'defaultTimeZone' => 'Europe/Moscow',
'currencyCode' => 'rub',
],
'cache' => [
'class' => \yii\caching\FileCache::class,
'class' => YII_ENV_DEV ? DummyCache::class : FileCache::class,
],
'authManager' => [
'class' => DbManager::class,
],
'assetManager' => [
// timeStamp css files
'appendTimestamp' => YII_ENV_DEV, //true|false
],
'i18n' => [
'translations' => [
'app*' => [
'class' => PhpMessageSource::class,
'basePath' => '@common/messages',
'fileMap' => [
'app' => 'app.php',
'error' => 'error.php',
],
],
'user*' => [
'class' => PhpMessageSource::class,
'basePath' => '@backend/modules/user/messages',
'fileMap' => [
'user' => 'user.php',
],
],
'schema*' => [
'class' => PhpMessageSource::class,
'basePath' => '@frontend/modules/schema/messages',
'fileMap' => [
'schema' => 'schema.php',
],
],
],
],
],
];

6262
composer.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -21,6 +21,13 @@ return [
'class' => \yii\console\controllers\FixtureController::class,
'namespace' => 'common\fixtures',
],
'migrate' => [
'class' => yii\console\controllers\MigrateController::class,
'migrationNamespaces' => [
'backend\modules\user\migrations',
'backend\modules\schema\migrations',
],
],
],
'components' => [
'log' => [

View File

@ -16,3 +16,9 @@
192.168.65.1 - - [13/Jun/2024:17:15:11 +0300] "GET /assets/f5fa1b4e/jquery.js HTTP/1.1" 304 0 "http://web.local/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36"
192.168.65.1 - - [13/Jun/2024:17:15:11 +0300] "GET /assets/e5b7c8da/yii.js HTTP/1.1" 304 0 "http://web.local/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36"
192.168.65.1 - - [13/Jun/2024:17:15:11 +0300] "GET /assets/46f1484b/dist/js/bootstrap.bundle.js HTTP/1.1" 304 0 "http://web.local/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36"
192.168.65.1 - - [05/Jul/2024:10:23:42 +0300] "GET / HTTP/1.1" 200 1547 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
192.168.65.1 - - [05/Jul/2024:10:23:42 +0300] "GET /css/site.css HTTP/1.1" 304 0 "http://web.local/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
192.168.65.1 - - [05/Jul/2024:10:23:42 +0300] "GET /assets/9f808c32/jquery.js HTTP/1.1" 200 292458 "http://web.local/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
192.168.65.1 - - [05/Jul/2024:10:23:42 +0300] "GET /assets/f19a632e/dist/css/bootstrap.css HTTP/1.1" 200 267476 "http://web.local/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
192.168.65.1 - - [05/Jul/2024:10:23:42 +0300] "GET /assets/5ff9840d/yii.js HTTP/1.1" 200 20981 "http://web.local/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
192.168.65.1 - - [05/Jul/2024:10:23:42 +0300] "GET /assets/f19a632e/dist/js/bootstrap.bundle.js HTTP/1.1" 200 208288 "http://web.local/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"

View File

@ -48,6 +48,25 @@ return [
'frontend/config/main-local.php',
],
],
'Staging' => [
'path' => 'stage',
'setWritable' => [
'backend/runtime',
'backend/web/assets',
'console/runtime',
'frontend/runtime',
'frontend/web/assets',
],
'setExecutable' => [
'yii',
'yii_test',
],
'setCookieValidationKey' => [
'backend/config/main-local.php',
'common/config/codeception-local.php',
'frontend/config/main-local.php',
],
],
'Production' => [
'path' => 'prod',
'setWritable' => [