Skip to content

Commit

Permalink
Merge pull request #733 from othercorey/4.x-env-files
Browse files Browse the repository at this point in the history
4.x - Updated comment on using .env files
  • Loading branch information
markstory authored Nov 18, 2019
2 parents 7e90b69 + a060d51 commit 6e0db82
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions config/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,19 @@
use Cake\Utility\Security;

/*
* See https://github.com/josegonzalez/php-dotenv for API details.
*
* Uncomment block of code below if you want to use `.env` file during development.
* You should copy `config/.env.example to `config/.env` and set/modify the
* variables as required.
*
* It is HIGHLY discouraged to use a .env file in production, due to security risks
* and decreased performance on each request. The purpose of the .env file is to emulate
* the presence of the environment variables like they would be present in production.
*/
* The purpose of the .env file is to emulate the presence of the environment
* variables like they would be present in production.
*
* If you use .env files, be careful to not commit them to source control to avoid
* security risks. See https://github.com/josegonzalez/php-dotenv#general-security-information
* for more information for recommended practices.
*/
// if (!env('APP_NAME') && file_exists(CONFIG . '.env')) {
// $dotenv = new \josegonzalez\Dotenv\Loader([CONFIG . '.env']);
// $dotenv->parse()
Expand Down

0 comments on commit 6e0db82

Please sign in to comment.