Created
July 22, 2015 19:25
-
-
Save sebas5384/cad778fcb820a589f658 to your computer and use it in GitHub Desktop.
Drupal: Acquia Search configurations by environment for Search API Acquia
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Configs on Acquia Servers. | |
if (isset($_ENV['AH_SITE_ENVIRONMENT'])) { | |
switch ($_ENV['AH_SITE_ENVIRONMENT']) { | |
case 'dev': | |
$conf['search_api_acquia_overrides']['acquia_search'] = array( | |
'path' => '/solr/**CHANGE_ME**.dev.solr4', | |
'host' => '**CHANGE_ME**.acquia-search.com', | |
'port' => 80, | |
'derived_key' => '**CHANGE_ME**', | |
); | |
break; | |
case 'test': | |
$conf['search_api_acquia_overrides']['acquia_search'] = array( | |
'path' => '/solr/**CHANGE_ME**.dev.solr4', | |
'host' => '**CHANGE_ME**.acquia-search.com', | |
'port' => 80, | |
'derived_key' => '**CHANGE_ME**', | |
); | |
break; | |
case 'rod': | |
$conf['search_api_acquia_overrides']['acquia_search'] = array( | |
'path' => '/solr/**CHANGE_ME**.dev.solr4', | |
'host' => '**CHANGE_ME**.acquia-search.com', | |
'port' => 80, | |
'derived_key' => '**CHANGE_ME**', | |
); | |
break; | |
case 'prod': | |
$conf['search_api_acquia_overrides']['acquia_search'] = array( | |
'path' => '/solr/**CHANGE_ME**.dev.solr4', | |
'host' => '**CHANGE_ME**.acquia-search.com', | |
'port' => 80, | |
'derived_key' => '**CHANGE_ME**', | |
); | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment