mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Remove redundant documentation
This commit is contained in:
parent
75a4bf65dd
commit
5864c34115
@ -8,44 +8,9 @@ Note that there is a precedence in reading configuration values:
|
||||
- local config file;
|
||||
- environment vars;
|
||||
- default config file (contained in ``bigchaindb.__init__``).
|
||||
|
||||
This means that if the default configuration contains an entry that is:
|
||||
|
||||
```
|
||||
{...
|
||||
"database": {"host": "localhost",
|
||||
"port": 28015}
|
||||
...}
|
||||
```
|
||||
|
||||
while your local file `local.json` contains:
|
||||
```
|
||||
{...
|
||||
"database": {"host": "whatever"}
|
||||
...}
|
||||
```
|
||||
|
||||
and you run this command:
|
||||
```
|
||||
$ BIGCHAINDB_DATABASE_HOST=foobar BIGCHAINDB_DATABASE_PORT=42000 bigchaindb -c local.json show-config
|
||||
```
|
||||
|
||||
You will get:
|
||||
```
|
||||
INFO:bigchaindb.config_utils:Configuration loaded from `local.json`
|
||||
{'CONFIGURED': True,
|
||||
'api_endpoint': 'http://localhost:8008/api/v1',
|
||||
'consensus_plugin': 'default',
|
||||
'database': {'host': 'localhost', 'name': 'bigchain', 'port': 28015},
|
||||
'keypair': {'private': 'Hbqvh...',
|
||||
'public': '2Bi5NU...'},
|
||||
'keyring': [],
|
||||
'statsd': {'host': 'localhost', 'port': 8125, 'rate': 0.01}}
|
||||
|
||||
```
|
||||
|
||||
"""
|
||||
|
||||
|
||||
import os
|
||||
import copy
|
||||
import json
|
||||
|
Loading…
x
Reference in New Issue
Block a user