Permalink
Browse files

[dotenv:init] Add .env dependency message. (#3818)

  • Loading branch information...
jmolivas committed Mar 6, 2018
1 parent e66605e commit f60afb640de36203130e697932685d1567ece79a
Showing with 5 additions and 3 deletions.
  1. +5 −3 templates/files/settings.dist
@@ -1,12 +1,14 @@
// If not using real environment variables.
// Make sure you add the `vlucas/phpdotenv` dependency using composer:
// composer require vlucas/phpdoten
/**
// Load .env file if exists
if (file_exists(dirname(DRUPAL_ROOT) . '/.env')) {
// Load environment
// make sure you add the vlucas/phpdotenv dependency using:
// composer require vlucas/phpdotenv
$dotenv = new \Dotenv\Dotenv(dirname(DRUPAL_ROOT));
$dotenv->load();
}
*/
# Load environment
$env = getenv('ENVIRONMENT');

0 comments on commit f60afb6

Please sign in to comment.