|
|
@@ -1,13 +1,15 @@ |
|
|
|
#STORE GIT CREDENTIALS IN CACHE |
|
|
|
git config --global credential.helper store |
|
|
|
git config --global credential.helper 'store --file ~/.git-credentials' |
|
|
|
# git config --global credential.helper 'store --file ~/.git-credentials' |
|
|
|
echo "Enter git username: " |
|
|
|
read gitUser |
|
|
|
echo "username=$gitUser" >> ~/.git-credentials |
|
|
|
git config --global user.name '${gitUser}' |
|
|
|
# echo "username=$gitUser" >> ~/.git-credentials |
|
|
|
echo "Enter git password: " |
|
|
|
read gitPassword |
|
|
|
echo "password=$gitPassword" >> ~/.git-credentials |
|
|
|
chmod 0600 ~/.git-credentials |
|
|
|
git config --global user.password '${gitPassword}' |
|
|
|
# echo "password=$gitPassword" >> ~/.git-credentials |
|
|
|
# chmod 0600 ~/.git-credentials |
|
|
|
|
|
|
|
#INSTALLING NODE JS |
|
|
|
cd ~ |
|
|
@@ -20,7 +22,6 @@ node --version |
|
|
|
npm --version |
|
|
|
npm install -g @angular/cli |
|
|
|
npm install -g pm2 |
|
|
|
pm2 install typescript |
|
|
|
# echo "Enter the version of node you want to install: (Example. 'v16.19.1')" |
|
|
|
# read nodeversion |
|
|
|
# nvm install $nodeversion |
|
|
@@ -50,8 +51,8 @@ git checkout production |
|
|
|
npm i |
|
|
|
|
|
|
|
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 |
|
|
|
npm i |
|
|
|
|
|
|
@@ -63,7 +64,7 @@ npm i |
|
|
|
|
|
|
|
#TO CREATE SYMLINK |
|
|
|
cd .. |
|
|
|
ln -s elixir-config-production/ config |
|
|
|
ln -s trias-config-production/ config |
|
|
|
|
|
|
|
#PRODUCTION B SETUP |
|
|
|
cd ~ |
|
|
@@ -89,8 +90,8 @@ git checkout production |
|
|
|
npm i |
|
|
|
|
|
|
|
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 |
|
|
|
npm i |
|
|
|
|
|
|
@@ -102,4 +103,4 @@ npm i |
|
|
|
|
|
|
|
#TO CREATE SYMLINK |
|
|
|
cd .. |
|
|
|
ln -s elixir-config-production/ config |
|
|
|
ln -s trias-config-production/ config |