revert to working database config
@@ -182,8 +182,12 @@ Let's create a template for this config file at habitat/config/database.json
```
{
"mongo": {
- "host" : "{{cfg.mongo.host}}",
- "port" : "{{cfg.mongo.port}}"
+ {{~#eachAlive bind.database.members as |member|}}
+ {{#if @first}}
+ "host" : "{{member.sys.ip}}",
+ "port" : "{{member.cfg.port}}"
+ {{/if}}
+ {{~/eachAlive}}
}
}
```
