Skip to content

Commit

Permalink
added server.host to dev guide (opensearch-project#917)
Browse files Browse the repository at this point in the history
* added server.host to dev guide

Signed-off-by: kohinoor98 <kohinoorchatterjee1998@gmail.com>

* emp server.host and moved command to Test section

Signed-off-by: kohinoor98 <kohinoorchatterjee1998@gmail.com>

---------

Signed-off-by: kohinoor98 <kohinoorchatterjee1998@gmail.com>
  • Loading branch information
kohinoor98 authored Nov 7, 2023
1 parent 44abf1d commit 3401a88
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions DEVELOPER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- [Build](#build)
- [Run](#run)
- [Test](#test)
- [Backport](#backport)

## Developer guide

Expand Down Expand Up @@ -57,6 +58,13 @@ In the base OpenSearch Dashboards directory, run

### Test

- `yarn start --no-base-path --no-watch --server.host="0.0.0.0"`

Starts OpenSearch Dashboards and includes this plugin. This setup is necessary for running tests using `Cypress` on `localhost:5601`.

**Important:** The `--server.host="0.0.0.0"` parameter is crucial as it configures the server to accept connections from any IP address, which is necessary for `Cypress` to connect to the dashboard server.


- `yarn test:jest`

- Runs the plugin tests.
Expand Down

0 comments on commit 3401a88

Please sign in to comment.