555
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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