diff --git a/environments/index.php b/environments/index.php index 19c989d..0b7ad7c 100644 --- a/environments/index.php +++ b/environments/index.php @@ -62,4 +62,20 @@ return [ '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', + ], + ], ]; diff --git a/environments/rochonet/backend/config/main-local.php b/environments/rochonet/backend/config/main-local.php new file mode 100644 index 0000000..af46ba3 --- /dev/null +++ b/environments/rochonet/backend/config/main-local.php @@ -0,0 +1,9 @@ + [ + 'request' => [ + // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation + 'cookieValidationKey' => '', + ], + ], +]; diff --git a/environments/rochonet/backend/config/params-local.php b/environments/rochonet/backend/config/params-local.php new file mode 100644 index 0000000..d0b9c34 --- /dev/null +++ b/environments/rochonet/backend/config/params-local.php @@ -0,0 +1,3 @@ +run(); diff --git a/environments/rochonet/common/config/main-local.php b/environments/rochonet/common/config/main-local.php new file mode 100644 index 0000000..54fff94 --- /dev/null +++ b/environments/rochonet/common/config/main-local.php @@ -0,0 +1,18 @@ + [ + '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' =>[] + ], + ], +]; diff --git a/environments/rochonet/common/config/params-local.php b/environments/rochonet/common/config/params-local.php new file mode 100644 index 0000000..d0b9c34 --- /dev/null +++ b/environments/rochonet/common/config/params-local.php @@ -0,0 +1,3 @@ + [ + 'request' => [ + // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation + 'cookieValidationKey' => '', + ], + ], +]; diff --git a/environments/rochonet/frontend/config/params-local.php b/environments/rochonet/frontend/config/params-local.php new file mode 100644 index 0000000..d0b9c34 --- /dev/null +++ b/environments/rochonet/frontend/config/params-local.php @@ -0,0 +1,3 @@ +run(); diff --git a/environments/rochonet/yii b/environments/rochonet/yii new file mode 100644 index 0000000..1fe0342 --- /dev/null +++ b/environments/rochonet/yii @@ -0,0 +1,28 @@ +#!/usr/bin/env php +run(); +exit($exitCode);