Skip to content

Instantly share code, notes, and snippets.

@nikathone
Created February 26, 2020 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikathone/e6eba02c6f8275f14d68d2b1d473c026 to your computer and use it in GitHub Desktop.
Save nikathone/e6eba02c6f8275f14d68d2b1d473c026 to your computer and use it in GitHub Desktop.
Settings.php
<?php
$databases['default']['default'] = [
'database' => getenv('DB_NAME'),
'username' => getenv('DB_USER'),
'password' => getenv('DB_PASSWORD'),
'host' => getenv('DB_HOST'),
'port' => getenv('DB_PORT'),
'driver' => 'mysql',
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
'prefix' => '',
'collation' => 'utf8mb4_general_ci',
];
$settings['file_public_path'] = 'sites/default/files';
$settings['file_private_path'] = getenv('FILES_DIR') . '/private';
$settings['file_temporary_path'] = '/tmp';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment