Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pages/en/lb3/Attaching-models-to-data-sources.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ for example `datasources.production.json` for production environment when NODE_E
### Using multiple data source configurations

LoopBack merges environment-specific configurations (for example in `datasources.production.json`) with the baseline configuration in `datasources.json`.
Environment-specific configurations can override the top-level values with string and number values only. You cannot use objects or array values.
Environment-specific configurations can override the top-level values with string, number, object, and array values.

It can be difficult to clear extra datasource settings inherited from the top-level `datasources.json` file in environment-specific files. To avoid issues, use a single `datasources.json` file that includes both individual settings such as `host`, `port`, and `database` for local environment and a `url` connection string setting that overrides the other settings for staging and production. For example:

Expand Down
3 changes: 0 additions & 3 deletions pages/en/lb3/Environment-specific-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,6 @@ You can override values set in `datasources.json` in the following files:
* <code>datasources.<i>env</i>.js</code> or <code>datasources.<i>env</i>.json</code>, where _`env`_ is the value of `NODE_ENV` environment variable (typically `development` or `production`).
For example, `datasources.production.json`.

{% include important.html content="The additional files can override the top-level data-source options with string and number values only. You cannot use objects or array values.
" %}

Example data sources:

{% include code-caption.html content="datasources.json" %}
Expand Down
3 changes: 1 addition & 2 deletions pages/en/lb3/readmes/loopback-connector-cloudant.md
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ source setup.sh <HOST> <USER> <PASSWORD> <PORT> <DATABASE>
where `<HOST>`, `<PORT>`, `<USER>`, `<PASSWORD>` and `<DATABASE>` are optional parameters. The default values are `localhost`, `8080` `admin`, `pass` and `test-db` respectively.
- Run the test:
```bash
npm test
npm run mocha
```

# More Info
Expand All @@ -573,4 +573,3 @@ Not implemented yet, track it in https://github.com/strongloop/loopback-connecto
## Index

To be updated