Переглянути джерело

Merge branch 'master' of Trias_Org/elxr into master

production
chess 1 рік тому
джерело
коміт
f3d48573d2

+ 18
- 0
trias/DB/mysql_backup.sh Переглянути файл

@@ -0,0 +1,18 @@
#!/bin/bash

# Set the database credentials
DB_USER="root"
DB_PASS="root@123"
DB_NAME="triq_demo"

# Set the backup directory
BACKUP_DIR="~/mysql_backup"

# Set the backup filename format
DATE=$(date +"%Y-%m-%d_%H-%M-%S")
FILENAME="${DB_NAME}_${DATE}.sql"

# Create the backup
echo mysqldump -u $DB_USER -p$DB_PASS $DB_NAME > $BACKUP_DIR/$FILENAME
mysqldump -u $DB_USER -p$DB_PASS $DB_NAME > $BACKUP_DIR/$FILENAME
# mysqldump -u root -p 'root@123' triq_demo > ~/mysql_backup/temp_1

+ 8
- 0
trias/DB/mysql_restore.sh Переглянути файл

@@ -0,0 +1,8 @@
DB_USER="root"
DB_PASS="root@123"
DB_NAME="triq_demo"
echo "Enter the name of backup file: "
read folderName
BACKUP_FILE="~/mysql_backup/$folderName"
# Restore backup file
mysql -u $DB_USER -p$DB_PASS $DB_NAME < $BACKUP_FILE

+ 88
- 0
trias/Server/trias_appserver_script.sh Переглянути файл

@@ -0,0 +1,88 @@
#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.1
node --version
npm --version
npm install -g @angular/cli
npm install pm2
# 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
mkdir chess
cd chess
mkdir production_A
cd 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
cd chess
mkdir production_B
cd 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

+ 23
- 0
trias/Server/trias_dbserver_script.sh Переглянути файл

@@ -0,0 +1,23 @@
#MYSQL SERVER INSTALLATION
sudo apt update
sudo apt install mysql-server
sudo systemctl start mysql.service

#STEPS FOR MYSQL_SECURE_INSTALLATION
#STEP-1 sudo mysql
#STEP-2 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'SET_PASSWORD';
#STEP-3 exit;
#STEP-4 sudo sed -i "s/.*bind-address.*/bind-address = 0.0.0.0/" /etc/mysql/mysql.conf.d/mysqld.cnf
#STEP-5 sudo systemctl restart mysql
#STEP-6 mysql -u root -p
#STEP-7 ALTER USER 'root'@'localhost' IDENTIFIED WITH auth_socket; AND FOLLOW THE STEPS
#STEP-8 exit;
#STEP-9 sudo mysql_secure_installation;
#STEP-10 sudo mysql;
#STEP-11 mysql -u root -p
#STEP-12 "ENTER MYSQL PASSWORD THAT WAS SET IN STEP 2"
#STEP-13 CREATE USER '_username_'@'_desiredIP_' IDENTIFIED WITH mysql_native_password BY 'password';
#STEP-14 GRANT ALL PRIVILEGES ON *.* TO '_username_'@'_desiredIP_' WITH GRANT OPTION;
#STEP-15 FLUSH PRIVILEGES;



Завантаження…
Відмінити
Зберегти