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.

trias_appserver_script.sh 1.7KB

1 year ago
1 year ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. echo "Enter the version of node you want to install: (Example. 'v16.19.1')"
  8. read nodeversion
  9. nvm install $nodeversion
  10. #ADDING GIT DOMAIN NAME TO HOSTS
  11. # echo "10.10.5.77 git.bbh.org.in" >> /etc/hosts
  12. #PRODUCTION A SETUP
  13. cd ~
  14. cd Desktop
  15. mkdir chess
  16. cd chess
  17. mkdir production_A
  18. cd production_A
  19. git clone http://git.bbh.org.in/chess/project-genesis-backend
  20. cd project-genesis-backend
  21. git checkout production
  22. npm i
  23. cd ..
  24. git clone http://git.bbh.org.in/chess/project-genesis-frontend
  25. cd project-genesis-frontend
  26. git checkout production
  27. npm i
  28. cd ..
  29. git clone http://git.bbh.org.in/chess/BBH_Patient_Portal
  30. cd BBH_Patient_Portal
  31. git checkout production
  32. npm i
  33. cd ..
  34. git clone http://git.bbh.org.in/chess/elixir-config-development
  35. cd elixir-config-development
  36. git checkout production
  37. npm i
  38. cd ..
  39. git clone http://git.bbh.org.in/chess/processmanager
  40. cd processmanager
  41. git checkout production
  42. npm i
  43. #PRODUCTION B SETUP
  44. cd ~
  45. cd Desktop
  46. cd chess
  47. mkdir production_B
  48. cd production_B
  49. git clone http://git.bbh.org.in/chess/project-genesis-backend
  50. cd project-genesis-backend
  51. git checkout production
  52. npm i
  53. cd ..
  54. git clone http://git.bbh.org.in/chess/project-genesis-frontend
  55. cd project-genesis-frontend
  56. git checkout production
  57. npm i
  58. cd ..
  59. git clone http://git.bbh.org.in/chess/BBH_Patient_Portal
  60. cd BBH_Patient_Portal
  61. git checkout production
  62. npm i
  63. cd ..
  64. git clone http://git.bbh.org.in/chess/elixir-config-development
  65. cd elixir-config-development
  66. git checkout production
  67. npm i
  68. cd ..
  69. git clone http://git.bbh.org.in/chess/processmanager
  70. cd processmanager
  71. git checkout production
  72. npm i