|
|
|
|
|
|
|
|
#STORE GIT CREDENTIALS IN CACHE |
|
|
|
|
|
git config --global credential.helper store |
|
|
|
|
|
git config --global credential.helper 'store --file ~/.git-credentials' |
|
|
|
|
|
echo "Enter git username: " |
|
|
|
|
|
read gitUser |
|
|
|
|
|
echo "username=$gitUser" >> ~/.git-credentials |
|
|
|
|
|
echo "Enter git password: " |
|
|
|
|
|
read gitPassword |
|
|
|
|
|
echo "password=$gitPassword" >> ~/.git-credentials |
|
|
|
|
|
chmod 0600 ~/.git-credentials |
|
|
|
|
|
|
|
|
|
|
|
#INSTALLING NODE JS |
|
|
#INSTALLING NODE JS |
|
|
cd ~ |
|
|
cd ~ |
|
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh |
|
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh |
|
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash |
|
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash |
|
|
|
|
|
sleep 2 |
|
|
source ~/.bashrc |
|
|
source ~/.bashrc |
|
|
|
|
|
export NVM_DIR="$HOME/.nvm" |
|
|
|
|
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm |
|
|
|
|
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion |
|
|
|
|
|
sleep 2 |
|
|
nvm list-remote |
|
|
nvm list-remote |
|
|
|
|
|
sleep 2 |
|
|
nvm install v16.19.1 |
|
|
nvm install v16.19.1 |
|
|
|
|
|
sleep 2 |
|
|
node --version |
|
|
node --version |
|
|
npm --version |
|
|
npm --version |
|
|
npm install -g @angular/cli |
|
|
npm install -g @angular/cli |
|
|
npm install -g pm2 |
|
|
npm install -g pm2 |
|
|
pm2 install typescript |
|
|
|
|
|
# echo "Enter the version of node you want to install: (Example. 'v16.19.1')" |
|
|
# echo "Enter the version of node you want to install: (Example. 'v16.19.1')" |
|
|
# read nodeversion |
|
|
# read nodeversion |
|
|
# nvm install $nodeversion |
|
|
# nvm install $nodeversion |
|
|
|
|
|
|
|
|
|
|
|
#STORE GIT CREDENTIALS IN CACHE |
|
|
|
|
|
git config --global credential.helper store |
|
|
|
|
|
# git config --global credential.helper 'store --file ~/.git-credentials' |
|
|
|
|
|
# echo "Enter git username: " |
|
|
|
|
|
# read gitUser |
|
|
|
|
|
# git config --global user.name '${gitUser}' |
|
|
|
|
|
# echo "username=$gitUser" >> ~/.git-credentials |
|
|
|
|
|
# echo "Enter git password: " |
|
|
|
|
|
# read gitPassword |
|
|
|
|
|
# git config --global user.password '${gitPassword}' |
|
|
|
|
|
# echo "password=$gitPassword" >> ~/.git-credentials |
|
|
|
|
|
# chmod 0600 ~/.git-credentials |
|
|
|
|
|
|
|
|
#PRODUCTION A SETUP |
|
|
#PRODUCTION A SETUP |
|
|
cd ~ |
|
|
cd ~ |
|
|
cd Desktop |
|
|
cd Desktop |
|
|
|
|
|
|
|
|
npm i |
|
|
npm i |
|
|
|
|
|
|
|
|
cd .. |
|
|
cd .. |
|
|
git clone http://git.bbh.org.in/chess/elixir-config-production |
|
|
|
|
|
cd elixir-config-production |
|
|
|
|
|
|
|
|
git clone http://git.bbh.org.in/Trias_Org/trias-config-production |
|
|
|
|
|
cd trias-config-production |
|
|
git checkout production |
|
|
git checkout production |
|
|
npm i |
|
|
npm i |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#TO CREATE SYMLINK |
|
|
#TO CREATE SYMLINK |
|
|
cd .. |
|
|
cd .. |
|
|
ln -s elixir-config-production/ config |
|
|
|
|
|
|
|
|
ln -s trias-config-production/ config |
|
|
|
|
|
|
|
|
#PRODUCTION B SETUP |
|
|
#PRODUCTION B SETUP |
|
|
cd ~ |
|
|
cd ~ |
|
|
|
|
|
|
|
|
npm i |
|
|
npm i |
|
|
|
|
|
|
|
|
cd .. |
|
|
cd .. |
|
|
git clone http://git.bbh.org.in/chess/elixir-config-production |
|
|
|
|
|
cd elixir-config-production |
|
|
|
|
|
|
|
|
git clone http://git.bbh.org.in/Trias_Org/trias-config-production |
|
|
|
|
|
cd trias-config-production |
|
|
git checkout production |
|
|
git checkout production |
|
|
npm i |
|
|
npm i |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#TO CREATE SYMLINK |
|
|
#TO CREATE SYMLINK |
|
|
cd .. |
|
|
cd .. |
|
|
ln -s elixir-config-production/ config |
|
|
|
|
|
|
|
|
ln -s trias-config-production/ config |