From 0e4afe975ab0408f0100a5d9573f7ae5c57e7fc6 Mon Sep 17 00:00:00 2001 From: Akilan Date: Fri, 15 Jan 2021 18:40:47 +0400 Subject: [PATCH] added .bashrc and in trouble shoot added @@vitess_version Signed-off-by: Akilan --- .gitignore | 5 ++++- content/en/docs/contributing/build-on-centos.md | 13 +++++++++++-- content/en/docs/contributing/build-on-ubuntu.md | 13 +++++++++++-- content/en/docs/troubleshoot/_index.md | 5 +++++ 4 files changed, 31 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 9a4aec200..1b01c4be9 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,7 @@ resources/ # Link checker bin/ tmp/ -.idea \ No newline at end of file +.idea + +# File generated when running npm install +package-lock.json \ No newline at end of file diff --git a/content/en/docs/contributing/build-on-centos.md b/content/en/docs/contributing/build-on-centos.md index c23edd59d..06b571a1d 100644 --- a/content/en/docs/contributing/build-on-centos.md +++ b/content/en/docs/contributing/build-on-centos.md @@ -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//go ``` ### Packages from CentOS repos @@ -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} diff --git a/content/en/docs/contributing/build-on-ubuntu.md b/content/en/docs/contributing/build-on-ubuntu.md index 6bead2e1c..a4c43afbf 100644 --- a/content/en/docs/contributing/build-on-ubuntu.md +++ b/content/en/docs/contributing/build-on-ubuntu.md @@ -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//go ``` ### Packages from apt repos @@ -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} diff --git a/content/en/docs/troubleshoot/_index.md b/content/en/docs/troubleshoot/_index.md index 53aff8f1b..9cb6d54c9 100644 --- a/content/en/docs/troubleshoot/_index.md +++ b/content/en/docs/troubleshoot/_index.md @@ -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; +```