Created
December 16, 2016 15:23
-
-
Save lornajane/3f141da518d5713ed7536011bd72fc23 to your computer and use it in GitHub Desktop.
This file contains 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
if(isset($_ENV['VCAP_SERVICES'])) { | |
$vcap_services = json_decode($_ENV['VCAP_SERVICES'], true); | |
$config['couchdb']['url'] = $vcap_services['cloudantNoSQLDB'][0]['credentials']['url']; | |
} else { | |
$config['couchdb']['url'] = "http://localhost:5984"; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment