diff --git a/pages/en/lb3/Attaching-models-to-data-sources.md b/pages/en/lb3/Attaching-models-to-data-sources.md index 2a7f7b387..f28325ca1 100644 --- a/pages/en/lb3/Attaching-models-to-data-sources.md +++ b/pages/en/lb3/Attaching-models-to-data-sources.md @@ -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: diff --git a/pages/en/lb3/Environment-specific-configuration.md b/pages/en/lb3/Environment-specific-configuration.md index 6650098ba..0e6f18688 100644 --- a/pages/en/lb3/Environment-specific-configuration.md +++ b/pages/en/lb3/Environment-specific-configuration.md @@ -163,9 +163,6 @@ You can override values set in `datasources.json` in the following files: * datasources.env.js or datasources.env.json, 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" %} diff --git a/pages/en/lb3/readmes/loopback-connector-cloudant.md b/pages/en/lb3/readmes/loopback-connector-cloudant.md index 2365c37f3..7e00f5cb3 100644 --- a/pages/en/lb3/readmes/loopback-connector-cloudant.md +++ b/pages/en/lb3/readmes/loopback-connector-cloudant.md @@ -551,7 +551,7 @@ source setup.sh where ``, ``, ``, `` and `` 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 @@ -573,4 +573,3 @@ Not implemented yet, track it in https://github.com/strongloop/loopback-connecto ## Index To be updated -