The web-based Apps Manager application helps you manage your apps and services instances (e.g., mLab for MongoDB-as-a-Service).
Use the Apps Manager to Create a Service Instance
- Sign In to run.pivotal.io.
Click the Pivotal Web Services button.
This connects you to the web-based Apps Manager.
- In the leftNav, click Marketplace.
- Scroll down to mLab in the alphabetical list of Services, and click mLab.
- Click, Select this Plan.
- Fill in the Configure Instance dialog as follows, and then click Add:
Instance Name: yourDuckId-mLab
Add to Space: Development
Bind to App: [do not bind]
Bind your mLab Service to your ToDo App
Edit todo-server.js:
Find this line:
var mongoLabUrl = appEnv.getServiceURL('UO-CIT-mLab');
Modify it to connect to your service instance:
var mongoLabUrl = appEnv.getServiceURL('yourDuckID-mLab');
- Edit manifest.yaml:
Bind your mLab service instance to your app:
services: - yourDuckID-mLab
Deploy your ToDo App to CF
You’ve now created a mLab instance, and bound it to your app.
You are ready to push your app to CF.