annotate vendor/chi-teck/drupal-code-generator/templates/d8/_project/env.example.twig @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents
children
rev   line source
Chris@5 1 # Copy and rename this file to .env at root of this project.
Chris@5 2 #
Chris@5 3 # A common use case is to supply database credentials via the environment.
Chris@5 4 # Edit settings.php like so:
Chris@5 5 #
Chris@5 6 # $databases['default']['default'] = [
Chris@5 7 # 'database' => getenv('MYSQL_DATABASE'),
Chris@5 8 # 'driver' => 'mysql',
Chris@5 9 # 'host' => getenv('MYSQL_HOST'),
Chris@5 10 # 'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
Chris@5 11 # 'password' => getenv('MYSQL_PASSWORD'),
Chris@5 12 # 'port' => getenv('MYSQL_PORT'),
Chris@5 13 # 'prefix' => '',
Chris@5 14 # 'username' => getenv('MYSQL_USER'),
Chris@5 15 # ];
Chris@5 16 #
Chris@5 17 # Uncomment and populate as needed.
Chris@5 18 # MYSQL_DATABASE=
Chris@5 19 # MYSQL_HOST=
Chris@5 20 # MYSQL_PASSWORD=
Chris@5 21 # MYSQL_PORT=
Chris@5 22 # MYSQL_USER=
Chris@5 23
Chris@5 24 {% if drush %}
Chris@5 25 # Another common use case is to set Drush's --uri via environment.
Chris@5 26 # DRUSH_OPTIONS_URI=http://localhost
Chris@5 27
Chris@5 28 {% endif %}