add profile rochonet
This commit is contained in:
parent
bf1553e97c
commit
7a0da7b80b
@ -62,4 +62,20 @@ return [
|
|||||||
'frontend/config/main-local.php',
|
'frontend/config/main-local.php',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
'rochonet' => [
|
||||||
|
'path' => 'rochonet',
|
||||||
|
'setWritable' => [
|
||||||
|
'backend/runtime',
|
||||||
|
'backend/web/assets',
|
||||||
|
'frontend/runtime',
|
||||||
|
'frontend/web/assets',
|
||||||
|
],
|
||||||
|
'setExecutable' => [
|
||||||
|
'yii',
|
||||||
|
],
|
||||||
|
'setCookieValidationKey' => [
|
||||||
|
'backend/config/main-local.php',
|
||||||
|
'frontend/config/main-local.php',
|
||||||
|
],
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
9
environments/rochonet/backend/config/main-local.php
Normal file
9
environments/rochonet/backend/config/main-local.php
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
return [
|
||||||
|
'components' => [
|
||||||
|
'request' => [
|
||||||
|
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
|
||||||
|
'cookieValidationKey' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
];
|
||||||
3
environments/rochonet/backend/config/params-local.php
Normal file
3
environments/rochonet/backend/config/params-local.php
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
return [
|
||||||
|
];
|
||||||
18
environments/rochonet/backend/web/index.php
Normal file
18
environments/rochonet/backend/web/index.php
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
defined('YII_DEBUG') or define('YII_DEBUG', false);
|
||||||
|
defined('YII_ENV') or define('YII_ENV', 'prod');
|
||||||
|
|
||||||
|
require(__DIR__ . '/../../vendor/autoload.php');
|
||||||
|
require(__DIR__ . '/../../vendor/yiisoft/yii2/Yii.php');
|
||||||
|
require(__DIR__ . '/../../common/config/bootstrap.php');
|
||||||
|
require(__DIR__ . '/../config/bootstrap.php');
|
||||||
|
|
||||||
|
$config = yii\helpers\ArrayHelper::merge(
|
||||||
|
require(__DIR__ . '/../../common/config/main.php'),
|
||||||
|
require(__DIR__ . '/../../common/config/main-local.php'),
|
||||||
|
require(__DIR__ . '/../config/main.php'),
|
||||||
|
require(__DIR__ . '/../config/main-local.php')
|
||||||
|
);
|
||||||
|
|
||||||
|
$application = new yii\web\Application($config);
|
||||||
|
$application->run();
|
||||||
18
environments/rochonet/common/config/main-local.php
Normal file
18
environments/rochonet/common/config/main-local.php
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
return [
|
||||||
|
'components' => [
|
||||||
|
'db' => [
|
||||||
|
'class' => 'yii\db\Connection',
|
||||||
|
'dsn' => 'mysql:host=localhost;dbname=botond_fitness',
|
||||||
|
'username' => 'root',
|
||||||
|
'password' => 'botond2015',
|
||||||
|
'charset' => 'utf8',
|
||||||
|
],
|
||||||
|
'mailer' => [
|
||||||
|
'class' => 'yii\swiftmailer\Mailer',
|
||||||
|
'viewPath' => '@common/mail',
|
||||||
|
'fileTransport' => true,
|
||||||
|
'transport' =>[]
|
||||||
|
],
|
||||||
|
],
|
||||||
|
];
|
||||||
3
environments/rochonet/common/config/params-local.php
Normal file
3
environments/rochonet/common/config/params-local.php
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
return [
|
||||||
|
];
|
||||||
3
environments/rochonet/console/config/main-local.php
Normal file
3
environments/rochonet/console/config/main-local.php
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
return [
|
||||||
|
];
|
||||||
3
environments/rochonet/console/config/params-local.php
Normal file
3
environments/rochonet/console/config/params-local.php
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
return [
|
||||||
|
];
|
||||||
9
environments/rochonet/frontend/config/main-local.php
Normal file
9
environments/rochonet/frontend/config/main-local.php
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
return [
|
||||||
|
'components' => [
|
||||||
|
'request' => [
|
||||||
|
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
|
||||||
|
'cookieValidationKey' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
];
|
||||||
3
environments/rochonet/frontend/config/params-local.php
Normal file
3
environments/rochonet/frontend/config/params-local.php
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
return [
|
||||||
|
];
|
||||||
18
environments/rochonet/frontend/web/index.php
Normal file
18
environments/rochonet/frontend/web/index.php
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
defined('YII_DEBUG') or define('YII_DEBUG', false);
|
||||||
|
defined('YII_ENV') or define('YII_ENV', 'prod');
|
||||||
|
|
||||||
|
require(__DIR__ . '/../../vendor/autoload.php');
|
||||||
|
require(__DIR__ . '/../../vendor/yiisoft/yii2/Yii.php');
|
||||||
|
require(__DIR__ . '/../../common/config/bootstrap.php');
|
||||||
|
require(__DIR__ . '/../config/bootstrap.php');
|
||||||
|
|
||||||
|
$config = yii\helpers\ArrayHelper::merge(
|
||||||
|
require(__DIR__ . '/../../common/config/main.php'),
|
||||||
|
require(__DIR__ . '/../../common/config/main-local.php'),
|
||||||
|
require(__DIR__ . '/../config/main.php'),
|
||||||
|
require(__DIR__ . '/../config/main-local.php')
|
||||||
|
);
|
||||||
|
|
||||||
|
$application = new yii\web\Application($config);
|
||||||
|
$application->run();
|
||||||
28
environments/rochonet/yii
Normal file
28
environments/rochonet/yii
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/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);
|
||||||
|
defined('YII_ENV') or define('YII_ENV', 'prod');
|
||||||
|
|
||||||
|
require(__DIR__ . '/vendor/autoload.php');
|
||||||
|
require(__DIR__ . '/vendor/yiisoft/yii2/Yii.php');
|
||||||
|
require(__DIR__ . '/common/config/bootstrap.php');
|
||||||
|
require(__DIR__ . '/console/config/bootstrap.php');
|
||||||
|
|
||||||
|
$config = yii\helpers\ArrayHelper::merge(
|
||||||
|
require(__DIR__ . '/common/config/main.php'),
|
||||||
|
require(__DIR__ . '/common/config/main-local.php'),
|
||||||
|
require(__DIR__ . '/console/config/main.php'),
|
||||||
|
require(__DIR__ . '/console/config/main-local.php')
|
||||||
|
);
|
||||||
|
|
||||||
|
$application = new yii\console\Application($config);
|
||||||
|
$exitCode = $application->run();
|
||||||
|
exit($exitCode);
|
||||||
Loading…
Reference in New Issue
Block a user