555
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

trias_appserver_script.sh 2.3KB

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