アプリの起動中に VCAP_SERVICES を読み取って mongodb サービスに接続したいのですが、null ですか?
barry-alexanders-MacBook-Pro:~ barryalexander$ vmc create-service mongodb mongodb-relcal RelCal
Creating Service: OK
Binding Service [mongodb-relcal]: OK
Stopping Application 'RelCal': OK
Staging Application 'RelCal': OK
Starting Application 'RelCal': OK
barry-alexanders-MacBook-Pro:~ barryalexander$ vmc apps
+-------------+----+---------+-------------------------+----------------+
| Application | # | Health | URLS | Services |
+-------------+----+---------+-------------------------+----------------+
| RelCal | 1 | RUNNING | relcal.cloudfoundry.com | mongodb-relcal |
| barry | 1 | STOPPED | barry.cloudfoundry.com | |
+-------------+----+---------+-------------------------+----------------+
barry-alexanders-MacBook-Pro:~ barryalexander$ vmc env RelCal
No Environment Variables