Skip to content

Instantly share code, notes, and snippets.

@twfahey1
Created November 9, 2018 16:13
Show Gist options
  • Save twfahey1/df570d1fe84f359c3d01365f31a5a4df to your computer and use it in GitHub Desktop.
Save twfahey1/df570d1fe84f359c3d01365f31a5a4df to your computer and use it in GitHub Desktop.
Lando local settings
<?php
/**
* @file
* Local settings.
*/
$lando_info = json_decode(getenv('LANDO_INFO'), TRUE);
$databases['default']['default'] = array(
'driver' => 'mysql',
'database' => $lando_info['database']['creds']['database'],
'username' => $lando_info['database']['creds']['user'],
'password' => $lando_info['database']['creds']['password'],
'host' => $lando_info['database']['internal_connection']['host'],
'prefix' => '',
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment