You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 31, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -70,17 +70,17 @@ This will automatically open the application on [http://localhost:8000](http://l
70
70
71
71
Both the production and development builds of the dashboard require API endpoint configurations in order to query data from specific datastores.
72
72
73
-
`endpoints.js`in the `config/` directory contains references to datastores required to visualize data in the dashboard. Please reference the following example for required configuration fields.
73
+
`public/endpoints.js` contains references to datastores required to visualize data in the dashboard. Please reference the following example for required configuration fields:
- An inventory file containing the server values defined
7
+
8
+
## Endpoint Configuration
9
+
API endpoints are defined in `public/endpoints.js` as runtime configuration variables for reference in the dashboard binary. Before deployment of the binary to a remote host, consider the configuration at `public/endpoints.js` as the file is copied to the target server during deployment. Please reference the following example for required configuration fields:
10
+
11
+
```JavaScript
12
+
window.endpoints= {
13
+
elasticsearch:'http://test_domain.com',
14
+
results:'http://test_domain.com',
15
+
graphql:'http://test_domain.com',
16
+
prefix:'test_prefix.',
17
+
result_index:'test_index.',
18
+
run_index:'test_index.'
19
+
};
20
+
```
9
21
10
22
## Run
11
23
Running the below commands from this checked-out directory to install the
12
24
pbench dashboard components locally, and then deploy hosts mentioned under
13
-
the "`[servers:children]`" section of the given `inventory` file.
14
-
15
-
There's also an option to define the dashboard configuration in the provided
16
-
inventory file.
25
+
the "`[servers]`" section of the given `inventory` file.
17
26
18
27
See the `inventory` file in this directory for an example.
19
28
```
29
+
$ # First bundle the dashboard for production
30
+
$ yarn build
31
+
$
20
32
$ # First add a link to the "dist" folder where the dashboard will be built.
0 commit comments