Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

trias_appserver_script.sh 2.3KB

vor 1 Jahr
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. #STORE GIT CREDENTIALS IN CACHE
  2. git config --global credential.helper store
  3. # git config --global credential.helper 'store --file ~/.git-credentials'
  4. echo "Enter git username: "
  5. read gitUser
  6. git config --global user.name '${gitUser}'
  7. # echo "username=$gitUser" >> ~/.git-credentials
  8. echo "Enter git password: "
  9. read gitPassword
  10. git config --global user.password '${gitPassword}'
  11. # echo "password=$gitPassword" >> ~/.git-credentials
  12. # chmod 0600 ~/.git-credentials
  13. #INSTALLING NODE JS
  14. cd ~
  15. curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh
  16. curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
  17. source ~/.bashrc
  18. nvm list-remote
  19. nvm install v16.19.1
  20. node --version
  21. npm --version
  22. npm install -g @angular/cli
  23. npm install -g pm2
  24. # echo "Enter the version of node you want to install: (Example. 'v16.19.1')"
  25. # read nodeversion
  26. # nvm install $nodeversion
  27. #PRODUCTION A SETUP
  28. cd ~
  29. cd Desktop
  30. mkdir chess
  31. cd chess
  32. mkdir production_A
  33. cd production_A
  34. git clone http://git.bbh.org.in/chess/project-genesis-backend
  35. cd project-genesis-backend
  36. git checkout production
  37. npm i
  38. cd ..
  39. git clone http://git.bbh.org.in/chess/project-genesis-frontend
  40. cd project-genesis-frontend
  41. git checkout production
  42. npm i
  43. cd ..
  44. git clone http://git.bbh.org.in/chess/bbh_patient_portal
  45. cd bbh_patient_portal
  46. git checkout production
  47. npm i
  48. cd ..
  49. git clone http://git.bbh.org.in/Trias_Org/trias-config-production
  50. cd trias-config-production
  51. git checkout production
  52. npm i
  53. cd ..
  54. git clone http://git.bbh.org.in/chess/processmanager
  55. cd processmanager
  56. git checkout production
  57. npm i
  58. #TO CREATE SYMLINK
  59. cd ..
  60. ln -s trias-config-production/ config
  61. #PRODUCTION B SETUP
  62. cd ~
  63. cd Desktop
  64. cd chess
  65. mkdir production_B
  66. cd production_B
  67. git clone http://git.bbh.org.in/chess/project-genesis-backend
  68. cd project-genesis-backend
  69. git checkout production
  70. npm i
  71. cd ..
  72. git clone http://git.bbh.org.in/chess/project-genesis-frontend
  73. cd project-genesis-frontend
  74. git checkout production
  75. npm i
  76. cd ..
  77. git clone http://git.bbh.org.in/chess/bbh_patient_portal
  78. cd bbh_patient_portal
  79. git checkout production
  80. npm i
  81. cd ..
  82. git clone http://git.bbh.org.in/Trias_Org/trias-config-production
  83. cd trias-config-production
  84. git checkout production
  85. npm i
  86. cd ..
  87. git clone http://git.bbh.org.in/chess/processmanager
  88. cd processmanager
  89. git checkout production
  90. npm i
  91. #TO CREATE SYMLINK
  92. cd ..
  93. ln -s trias-config-production/ config