|
|
@@ -1,3 +1,14 @@ |
|
|
|
#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 |
|
|
|
cd ~ |
|
|
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh |
|
|
@@ -8,14 +19,12 @@ nvm install v16.19.1 |
|
|
|
node --version |
|
|
|
npm --version |
|
|
|
npm install -g @angular/cli |
|
|
|
npm install pm2 |
|
|
|
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 |
|
|
|
|
|
|
|
#ADDING GIT DOMAIN NAME TO HOSTS |
|
|
|
# echo "10.10.5.77 git.bbh.org.in" >> /etc/hosts |
|
|
|
|
|
|
|
#PRODUCTION A SETUP |
|
|
|
cd ~ |
|
|
|
cd Desktop |
|
|
@@ -35,14 +44,14 @@ git checkout production |
|
|
|
npm i |
|
|
|
|
|
|
|
cd .. |
|
|
|
git clone http://git.bbh.org.in/chess/BBH_Patient_Portal |
|
|
|
cd BBH_Patient_Portal |
|
|
|
git clone http://git.bbh.org.in/chess/bbh_patient_portal |
|
|
|
cd bbh_patient_portal |
|
|
|
git checkout production |
|
|
|
npm i |
|
|
|
|
|
|
|
cd .. |
|
|
|
git clone http://git.bbh.org.in/chess/elixir-config-development |
|
|
|
cd elixir-config-development |
|
|
|
git clone http://git.bbh.org.in/chess/elixir-config-production |
|
|
|
cd elixir-config-production |
|
|
|
git checkout production |
|
|
|
npm i |
|
|
|
|
|
|
@@ -52,6 +61,10 @@ cd processmanager |
|
|
|
git checkout production |
|
|
|
npm i |
|
|
|
|
|
|
|
#TO CREATE SYMLINK |
|
|
|
cd .. |
|
|
|
ln -s elixir-config-production/ config |
|
|
|
|
|
|
|
#PRODUCTION B SETUP |
|
|
|
cd ~ |
|
|
|
cd Desktop |
|
|
@@ -70,14 +83,14 @@ git checkout production |
|
|
|
npm i |
|
|
|
|
|
|
|
cd .. |
|
|
|
git clone http://git.bbh.org.in/chess/BBH_Patient_Portal |
|
|
|
cd BBH_Patient_Portal |
|
|
|
git clone http://git.bbh.org.in/chess/bbh_patient_portal |
|
|
|
cd bbh_patient_portal |
|
|
|
git checkout production |
|
|
|
npm i |
|
|
|
|
|
|
|
cd .. |
|
|
|
git clone http://git.bbh.org.in/chess/elixir-config-development |
|
|
|
cd elixir-config-development |
|
|
|
git clone http://git.bbh.org.in/chess/elixir-config-production |
|
|
|
cd elixir-config-production |
|
|
|
git checkout production |
|
|
|
npm i |
|
|
|
|
|
|
@@ -85,4 +98,8 @@ cd .. |
|
|
|
git clone http://git.bbh.org.in/chess/processmanager |
|
|
|
cd processmanager |
|
|
|
git checkout production |
|
|
|
npm i |
|
|
|
npm i |
|
|
|
|
|
|
|
#TO CREATE SYMLINK |
|
|
|
cd .. |
|
|
|
ln -s elixir-config-production/ config |