Skip to content

Instantly share code, notes, and snippets.

@skwashd
Created February 15, 2014 04:46
Show Gist options
  • Save skwashd/9014685 to your computer and use it in GitHub Desktop.
Save skwashd/9014685 to your computer and use it in GitHub Desktop.
Example drupal settings.php entries for automatically configuring composer-manager on Acquia Cloud.
if (!empty($_ENV['AH_SITE_ENVIRONMENT'])) {
$conf['composer_manager_file_dir'] = "/var/www/html/{$_ENV['AH_SITE_GROUP']}.{$_ENV['AH_SITE_ENVIRONMENT']}/docroot/sites/default/files/composer";
$conf['composer_manager_vendor_dir'] = "{$conf['composer_manager_file_dir']}/vendor";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment