Skip to content

Commit

Permalink
Don't need database environment variables for development. (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
pingers authored Aug 8, 2018
1 parent b0bde53 commit beac21d
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions RoboFileBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ public function __construct() {
// Read config from env vars.
$environment_config = $this->readConfigFromEnv();
$this->config = array_merge($this->config, $environment_config);
if (!isset($this->config['database']['username'])) {
echo "Database config is missing.\n";
}
}

/**
Expand Down Expand Up @@ -148,16 +145,6 @@ protected function readConfigFromEnv() {
$config['environment']['hash_salt'] = getenv('HASH_SALT');
$config['environment']['config_sync_dir'] = getenv('CONFIG_SYNC_DIRECTORY');

// Databases.
$config['database']['database'] = getenv('DATABASE_NAME');
$config['database']['driver'] = getenv('DATABASE_DRIVER');
$config['database']['host'] = getenv('DATABASE_HOST');
$config['database']['port'] = getenv('DATABASE_PORT');
$config['database']['username'] = getenv('DATABASE_USER');
$config['database']['password'] = getenv('DATABASE_PASSWORD');
$config['database']['namespace'] = getenv('DATABASE_NAMESPACE');
$config['database']['prefix'] = getenv('DATABASE_PREFIX');

// Clean up NULL values and empty arrays.
$array_clean = function (&$item) use (&$array_clean) {
foreach ($item as $key => $value) {
Expand Down

0 comments on commit beac21d

Please sign in to comment.