Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

trias_appserver_script.sh 2.4KB

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