From 7a0da7b80b390daf6f7242fc256846936fa4cf62 Mon Sep 17 00:00:00 2001 From: Roland Schneider Date: Fri, 1 Jan 2016 21:42:40 +0100 Subject: [PATCH] add profile rochonet --- environments/index.php | 16 +++++++++++ .../rochonet/backend/config/main-local.php | 9 ++++++ .../rochonet/backend/config/params-local.php | 3 ++ environments/rochonet/backend/web/index.php | 18 ++++++++++++ .../rochonet/common/config/main-local.php | 18 ++++++++++++ .../rochonet/common/config/params-local.php | 3 ++ .../rochonet/console/config/main-local.php | 3 ++ .../rochonet/console/config/params-local.php | 3 ++ .../rochonet/frontend/config/main-local.php | 9 ++++++ .../rochonet/frontend/config/params-local.php | 3 ++ environments/rochonet/frontend/web/index.php | 18 ++++++++++++ environments/rochonet/yii | 28 +++++++++++++++++++ 12 files changed, 131 insertions(+) create mode 100644 environments/rochonet/backend/config/main-local.php create mode 100644 environments/rochonet/backend/config/params-local.php create mode 100644 environments/rochonet/backend/web/index.php create mode 100644 environments/rochonet/common/config/main-local.php create mode 100644 environments/rochonet/common/config/params-local.php create mode 100644 environments/rochonet/console/config/main-local.php create mode 100644 environments/rochonet/console/config/params-local.php create mode 100644 environments/rochonet/frontend/config/main-local.php create mode 100644 environments/rochonet/frontend/config/params-local.php create mode 100644 environments/rochonet/frontend/web/index.php create mode 100644 environments/rochonet/yii 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);