Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

trias_appserver_script.sh 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. pm2 install typescript
  13. # echo "Enter the version of node you want to install: (Example. 'v16.19.1')"
  14. # read nodeversion
  15. # nvm install $nodeversion
  16. #PRODUCTION A SETUP
  17. cd ~
  18. cd Desktop
  19. mkdir chess
  20. cd chess
  21. mkdir production_A
  22. cd production_A
  23. git clone http://git.bbh.org.in/chess/project-genesis-backend
  24. cd project-genesis-backend
  25. git checkout production
  26. npm i
  27. cd ..
  28. git clone http://git.bbh.org.in/chess/project-genesis-frontend
  29. cd project-genesis-frontend
  30. git checkout production
  31. npm i
  32. cd ..
  33. git clone http://git.bbh.org.in/chess/BBH_Patient_Portal
  34. cd BBH_Patient_Portal
  35. git checkout production
  36. npm i
  37. cd ..
  38. git clone http://git.bbh.org.in/chess/elixir-config-production
  39. cd elixir-config-production
  40. git checkout production
  41. npm i
  42. cd ..
  43. git clone http://git.bbh.org.in/chess/processmanager
  44. cd processmanager
  45. git checkout production
  46. npm i
  47. #TO CREATE SYMLINK
  48. cd ..
  49. ln -s elixir-config-production/ config
  50. #PRODUCTION B SETUP
  51. cd ~
  52. cd Desktop
  53. cd chess
  54. mkdir production_B
  55. cd production_B
  56. git clone http://git.bbh.org.in/chess/project-genesis-backend
  57. cd project-genesis-backend
  58. git checkout production
  59. npm i
  60. cd ..
  61. git clone http://git.bbh.org.in/chess/project-genesis-frontend
  62. cd project-genesis-frontend
  63. git checkout production
  64. npm i
  65. cd ..
  66. git clone http://git.bbh.org.in/chess/BBH_Patient_Portal
  67. cd BBH_Patient_Portal
  68. git checkout production
  69. npm i
  70. cd ..
  71. git clone http://git.bbh.org.in/chess/elixir-config-production
  72. cd elixir-config-production
  73. git checkout production
  74. npm i
  75. cd ..
  76. git clone http://git.bbh.org.in/chess/processmanager
  77. cd processmanager
  78. git checkout production
  79. npm i
  80. #TO CREATE SYMLINK
  81. cd ..
  82. ln -s elixir-config-production/ config