diff --git a/drush/drushrc.php b/drush/drushrc.php index dde22aad0..9686aafde 100644 --- a/drush/drushrc.php +++ b/drush/drushrc.php @@ -59,10 +59,18 @@ * affects the loading of Drush configuration files. */ +if (getenv('TUGBOAT_URL')) { + $options['uri'] = $_ENV['TUGBOAT_URL']; +} // Include current directory. Will add policy.drush.inc. $options['include'][] = __DIR__; +// If we are on Acquia Cloud, add Acquia specific commands. +if (file_exists('/usr/local/drush8/commands')) { + $options['include'][] = '/usr/local/drush8/commands'; +} + // Specify the base_url that should be used when generating links # $options['l'] = 'http://example.com/subdir'; diff --git a/scripts/blt/ignore-existing.txt b/scripts/blt/ignore-existing.txt index f9621ffa0..513a8a109 100644 --- a/scripts/blt/ignore-existing.txt +++ b/scripts/blt/ignore-existing.txt @@ -9,6 +9,7 @@ composer.json composer.lock README.md drush/site-aliases/aliases.drushrc.php +drush/drushrc.php docroot/sites/default/services.yml docroot/sites/default/settings/trusted_host.settings.php factory-hooks/pre-settings-php/includes.php diff --git a/template/drush/drushrc.php b/template/drush/drushrc.php index df9f88096..660e7af2a 100644 --- a/template/drush/drushrc.php +++ b/template/drush/drushrc.php @@ -1,305 +1,12 @@ TRUE); - -// Prevent drush ssh command from adding a cd to Drupal root before provided command. -# $command_specific['ssh'] = array('cd' => FALSE); - -// Additional folders to search for scripts. -// Separate by : (Unix-based systems) or ; (Windows). -# $command_specific['script']['script-path'] = 'sites/all/scripts:profiles/myprofile/scripts'; - -// Always show release notes when running pm-update or pm-updatecode. -# $command_specific['pm-update'] = array('notes' => TRUE); -# $command_specific['pm-updatecode'] = array('notes' => TRUE); - -// Set a predetermined username and password when using site-install. -# $command_specific['site-install'] = array('account-name' => 'alice', 'account-pass' => 'secret'); - -// Use Drupal version specific CLI history instead of per site. -# $command_specific['core-cli'] = array('version-history' => TRUE); +// Add project-specific drush configuration below. +// @see https://github.com/acquia/blt/tree/8.x/drush/drushrc.php For examples +// of valid statements for a Drush runtime config (drushrc) file.