美文网首页
IBM Bluemix获取环境变量VCAP_SERVICES

IBM Bluemix获取环境变量VCAP_SERVICES

作者: aapu | 来源:发表于2015-06-14 14:02 被阅读292次

json_decode(getenv('VCAP_SERVICES'), true)['cleardb'][0]['credentials']['name']

json_decode(getenv('VCAP_SERVICES'), true)['cleardb'][0]['credentials']['username']

json_decode(getenv('VCAP_SERVICES'), true)['cleardb'][0]['credentials']['password']

json_decode(getenv('VCAP_SERVICES'), true)['cleardb'][0]['credentials']['hostname']

相关文章

网友评论

      本文标题:IBM Bluemix获取环境变量VCAP_SERVICES

      本文链接:https://www.haomeiwen.com/subject/uuajqttx.html