Skip to content

Commit

Permalink
added .bashrc and in trouble shoot added @@vitess_version
Browse files Browse the repository at this point in the history
Signed-off-by: Akilan <[email protected]>
  • Loading branch information
Akilan1999 committed Jan 15, 2021
1 parent a151629 commit 0e4afe9
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ resources/
# Link checker
bin/
tmp/
.idea
.idea

# File generated when running npm install
package-lock.json
13 changes: 11 additions & 2 deletions content/en/docs/contributing/build-on-centos.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,16 @@ sudo tar -C /usr/local -xzf go1.15.6.linux-amd64.tar.gz

Make sure to add go to your bashrc:
```
# Additions to ~/.bashrc file
# Add go PATH
export PATH=$PATH:/usr/local/go/bin
# Add GOROOT
export GOROOT=/usr/local/go/
# Add GOPATH
export GOPATH=/home/<user>/go
```

### Packages from CentOS repos
Expand Down Expand Up @@ -69,8 +78,8 @@ Set environment variables that Vitess will require. It is recommended to put the
```
# Additions to ~/.bashrc file
# Add go PATH
export PATH=$PATH:/usr/local/go/bin
#VTDATAROOT
export VTDATAROOT=/tmp/vtdataroot
# Vitess binaries
export PATH=~/vitess/bin:${PATH}
Expand Down
13 changes: 11 additions & 2 deletions content/en/docs/contributing/build-on-ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,16 @@ sudo tar -C /usr/local -xzf go1.15.6.linux-amd64.tar.gz

Make sure to add go to your bashrc:
```
# Additions to ~/.bashrc file
# Add go PATH
export PATH=$PATH:/usr/local/go/bin
# Add GOROOT
export GOROOT=/usr/local/go/
# Add GOPATH
export GOPATH=/home/<user>/go
```

### Packages from apt repos
Expand Down Expand Up @@ -82,8 +91,8 @@ Set environment variables that Vitess will require. It is recommended to put the
```
# Additions to ~/.bashrc file
# Add go PATH
export PATH=$PATH:/usr/local/go/bin
#VTDATAROOT
export VTDATAROOT=/tmp/vtdataroot
# Vitess binaries
export PATH=~/vitess/bin:${PATH}
Expand Down
5 changes: 5 additions & 0 deletions content/en/docs/troubleshoot/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ When an alert fires, you have the following sources of information to perform yo
* Graphs
* Diagnostic URLs
* Log files

### Find Vitess build running
```
select @@vitess_version;
```

0 comments on commit 0e4afe9

Please sign in to comment.