Преглед на файлове

Updated scripts for server setup

pull/13/head
Steffan JJ преди 1 година
родител
ревизия
7f8b1b42ed
променени са 4 файла, в които са добавени 32 реда и са изтрити 4 реда
  1. 0
    0
      trias/Database/mysql_backup.sh
  2. 0
    0
      trias/Database/mysql_restore.sh
  3. 15
    4
      trias/Server/trias_appserver_script.sh
  4. 17
    0
      trias/trias_app_update.sh

trias/DB/mysql_backup.sh → trias/Database/mysql_backup.sh Целия файл


trias/DB/mysql_restore.sh → trias/Database/mysql_restore.sh Целия файл


+ 15
- 4
trias/Server/trias_appserver_script.sh Целия файл

@@ -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
@@ -33,8 +44,8 @@ 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

@@ -72,8 +83,8 @@ 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


+ 17
- 0
trias/trias_app_update.sh Целия файл

@@ -0,0 +1,17 @@
#SCRIPT TO PULL LATEST UPDATES AUTOMATICALLY
cd ../project-genesis-backend
git pull

cd ../project-genesis-frontend
git pull

cd ../bbh_patient_portal
git pull

cd ../elixir-config-production
git pull

cd ../processmanager
git pull

pm2 reload all

Loading…
Отказ
Запис