diff --git a/.env-dist b/.env-dist new file mode 100644 index 0000000..2462ce3 --- /dev/null +++ b/.env-dist @@ -0,0 +1,4 @@ +YII_DEBUG=1 +YII_ENV=dev +YII_TRACE_LEVEL=0 +GITHUB_TOKEN= \ No newline at end of file diff --git a/src/config/init.php b/src/config/init.php index 41426f3..a5c4cde 100644 --- a/src/config/init.php +++ b/src/config/init.php @@ -1,6 +1,8 @@ load(); + +if (file_exists(__DIR__ . '/../..')) + (new \Dotenv\Dotenv(__DIR__ . '/../..'))->load(); defined('YII_DEBUG') or define('YII_DEBUG', getenv('YII_DEBUG') ? (getenv('YII_DEBUG') == 'false' ? false : getenv('YII_DEBUG')) : true); defined('YII_ENV') or define('YII_ENV', getenv('YII_ENV') ? getenv('YII_ENV') : 'dev'); \ No newline at end of file