Explorar el Código

Adding server setup scripts for Trias

production
Steffan JJ hace 1 año
padre
commit
3caa88741d
Se han modificado 2 ficheros con 104 adiciones y 0 borrados
  1. 80
    0
      trias_appserver_script.sh
  2. 24
    0
      trias_dbserver_script.sh

+ 80
- 0
trias_appserver_script.sh Ver fichero

@@ -0,0 +1,80 @@
#INSTALLING NODE JS
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 | bash
source ~/.bashrc
nvm list-remote
nvm install v16.19.0

#ADDING GIT DOMAIN NAME TO HOSTS
echo "10.10.5.77 git.bbh.org.in" >> /etc/hosts

#PRODUCTION A SETUP
cd ~
cd Desktop
mkdir chess
cd chess
mkdir production_A
git clone http://git.bbh.org.in/chess/project-genesis-backend
cd project-genesis-backend
git checkout production
npm i

cd ..
git clone http://git.bbh.org.in/chess/project-genesis-frontend
cd project-genesis-frontend
git checkout production
npm i

cd ..
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 checkout production
npm i

cd ..
git clone http://git.bbh.org.in/chess/processmanager
cd processmanager
git checkout production
npm i

#PRODUCTION B SETUP
cd ~
cd Desktop
mkdir chess
cd chess
mkdir production_B
git clone http://git.bbh.org.in/chess/project-genesis-backend
cd project-genesis-backend
git checkout production
npm i

cd ..
git clone http://git.bbh.org.in/chess/project-genesis-frontend
cd project-genesis-frontend
git checkout production
npm i

cd ..
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 checkout production
npm i

cd ..
git clone http://git.bbh.org.in/chess/processmanager
cd processmanager
git checkout production
npm i

+ 24
- 0
trias_dbserver_script.sh Ver fichero

@@ -0,0 +1,24 @@
#MYSQL SERVER INSTALLATION
sudo apt update
sudo apt install mysql-server
sudo systemctl start mysql.service
sudo sed -i "s/.*bind-address.*/bind-address = 0.0.0.0/" /etc/mysql/my.cnf
sudo systemctl restart mysql



#STEPS FOR MYSQL_SECURE_INSTALLATION
#STEP-1 sudo mysql
#STEP-2 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '${WHATEVER_PASSWORD_YOU_WANT_TO_SET}';
#STEP-3 exit;
#STEP-4 mysql -u root -p
#STEP-5 ALTER USER 'root'@'localhost' IDENTIFIED WITH auth_socket; AND FOLLOW THE STEPS
#STEP-6 sudo mysql_secure_installation;
#STEP-7 sudo mysql;
#STEP-8 mysql -u root -p
#STEP-9 "ENTER MYSQL PASSWORD THAT WAS SET IN STEP 2"
#STEP-10 CREATE USER ‘_username_’@‘_desiredIP_’ IDENTIFIED WITH mysql_native_password BY ‘password’;
#STEP-11 GRANT ALL PRIVILEGES ON *.* TO ‘_username_’@‘_desiredIP_’ WITH GRANT OPTION;
#STEP-12 FLUSH PRIVILEGES;



Cargando…
Cancelar
Guardar