Skip to content

Commit

Permalink
Updated comment on using .env files to provide more information on re…
Browse files Browse the repository at this point in the history
…commended practices
  • Loading branch information
othercorey committed Nov 17, 2019
1 parent 7e90b69 commit a060d51
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 a060d51

Please sign in to comment.