Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

trias_appserver_script.sh 2.4KB

před 1 rokem
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. #INSTALLING NODE JS
  2. cd ~
  3. curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh
  4. curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
  5. source ~/.bashrc
  6. nvm list-remote
  7. nvm install v16.19.1
  8. node --version
  9. npm --version
  10. npm install -g @angular/cli
  11. npm install -g pm2
  12. # echo "Enter the version of node you want to install: (Example. 'v16.19.1')"
  13. # read nodeversion
  14. # nvm install $nodeversion
  15. #STORE GIT CREDENTIALS IN CACHE
  16. git config --global credential.helper store
  17. # git config --global credential.helper 'store --file ~/.git-credentials'
  18. # echo "Enter git username: "
  19. # read gitUser
  20. # git config --global user.name '${gitUser}'
  21. # echo "username=$gitUser" >> ~/.git-credentials
  22. # echo "Enter git password: "
  23. # read gitPassword
  24. # git config --global user.password '${gitPassword}'
  25. # echo "password=$gitPassword" >> ~/.git-credentials
  26. # chmod 0600 ~/.git-credentials
  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