Skip to content

Commit

Permalink
mod: package sh && docs link (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolaCage authored Jan 18, 2022
1 parent 1772fcf commit 32c7154
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 15 deletions.
1 change: 1 addition & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
with:
repository: vesoft-inc/nebula-http-gateway
path: source/nebula-http-gateway

- uses: actions/setup-go@v2
with:
go-version: '^1.13.1'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
repository: vesoft-inc/nebula-http-gateway
path: source/nebula-http-gateway
ref: v2
##ToDO: add nebula-stats-exporter、node-exporter and prometheus
- uses: actions/setup-go@v2
with:
go-version: '^1.13.1'
Expand Down
16 changes: 12 additions & 4 deletions DEPLOY.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,19 @@ Attention: the file under these packages is compiled under Linux environment, ca
port: 9669, // change to running nebula graph port
},
```

- Modify proxy setting: `./vendors/config-release.yaml`
```
port: 7003
proxy:
gateway:
target: "127.0.0.1:8090" // change gateway service proxy
prometheus:
target: "127.0.0.1:9091" // change prometheus service proxy
```
- Start:
```bash
$ cd nebula-graph-dashboard
$ npm run start
$ ./dashboard &
```
- service address: http://127.0.0.1:7003

Expand All @@ -94,8 +103,7 @@ $ kill $(lsof -t -i :9200) # stop nebula-stats-exporter service
$ kill $(lsof -t -i :9100) # stop node-exporter service
$ kill $(lsof -t -i :9090) # stop prometheus service
$ kill $(lsof -t -i :8090) # stop nebula-http-gateway
$ cd nebula-graph-dashboard
$ npm run stop # stop nebula-graph-dashboard
$ kill $(lsof -t -i :7003) # stop nebula-graph-dashboard
```


4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,5 @@ If you plan to set up dashboard in production, refer to:[production guide](DEP
## Documentation
+ [中文](https://docs.nebula-graph.com.cn/2.5.0/nebula-dashboard/1.what-is-dashboard/)
+ [ENGLISH](https://docs.nebula-graph.io/2.5.0/nebula-dashboard/1.what-is-dashboard/)
+ [中文](https://docs.nebula-graph.com.cn/3.0.0/nebula-dashboard/1.what-is-dashboard/)
+ [ENGLISH](https://docs.nebula-graph.io/3.0.0/nebula-dashboard/1.what-is-dashboard/)
8 changes: 4 additions & 4 deletions scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ cd $GATEWAY
make
TARGET_GATEWAY=$TARGET/$VENDOR_DIR/nebula-http-gateway
mkdir -p $TARGET_GATEWAY/conf
cp -r $DASHBOARD/vendors/gateway.conf $TARGET_GATEWAY/conf/app.conf
mv $DASHBOARD/vendors/gateway.conf $TARGET_GATEWAY/conf/app.conf
mv $GATEWAY/nebula-httpd $TARGET_GATEWAY/

### nebula-stat-exporter build ###
chmod 755 $DASHBOARD/vendors/nebula-stats-exporter/nebula-stats-exporter
cp -r $DASHBOARD/vendors/nebula-stats-exporter/ $TARGET/$VENDOR_DIR
mv $DASHBOARD/vendors/nebula-stats-exporter/ $TARGET/$VENDOR_DIR

### node-exporter
cp -r $DASHBOARD/vendors/node-exporter/ $TARGET/$VENDOR_DIR
mv $DASHBOARD/vendors/node-exporter/ $TARGET/$VENDOR_DIR

# prometheus
cp -r $DASHBOARD/vendors/prometheus/ $TARGET/$VENDOR_DIR
mv $DASHBOARD/vendors/prometheus/ $TARGET/$VENDOR_DIR

### Nebula Graph Dashboard relative ###
cd $DASHBOARD
Expand Down
4 changes: 2 additions & 2 deletions src/components/MetricPopover/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export const MetricPopover = (props: { list }) => {
const locale = cookies.get('locale');
const manualHref =
locale === 'ZH_CN'
? 'https://docs.nebula-graph.com.cn/2.5.0/nebula-dashboard/6.monitor-parameter/'
: 'https://docs.nebula-graph.io/2.5.0/nebula-dashboard/6.monitor-parameter/'; // TODO update english docs link
? 'https://docs.nebula-graph.com.cn/3.0.0/nebula-dashboard/6.monitor-parameter/'
: 'https://docs.nebula-graph.io/3.0.0/nebula-dashboard/6.monitor-parameter/'; // TODO update english docs link

return (
<Popover
Expand Down
4 changes: 2 additions & 2 deletions src/pages/MainPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ class MainPage extends React.Component<IProps, IState> {
const locale = cookies.get('locale');
const manualHref =
locale === 'ZH_CN'
? 'https://docs.nebula-graph.com.cn/2.5.0/nebula-dashboard/1.what-is-dashboard/'
: 'https://docs.nebula-graph.io/2.5.0/nebula-dashboard/1.what-is-dashboard/';
? 'https://docs.nebula-graph.com.cn/3.0.0/nebula-dashboard/1.what-is-dashboard/'
: 'https://docs.nebula-graph.io/3.0.0/nebula-dashboard/1.what-is-dashboard/';

if(activeKey === undefined) {
activeKey = 'machine-overview';
Expand Down

0 comments on commit 32c7154

Please sign in to comment.