Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

linux_setup.sh 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. #STORE GIT CREDENTIALS IN CACHE
  2. sudo yum install git
  3. git config --global credential.helper store
  4. git config --global credential.helper 'store --file ~/.git-credentials'
  5. echo "Enter git username: "
  6. read gitUser
  7. echo "username=$gitUser" >> ~/.git-credentials
  8. echo "Enter git password: "
  9. read gitPassword
  10. echo "password=$gitPassword" >> ~/.git-credentials
  11. chmod 0600 ~/.git-credentials
  12. # Install prerequisites
  13. #NODE JS 16.17.1
  14. wget https://nodejs.org/dist/v16.17.1/node-v16.17.1-linux-x64.tar.xz
  15. tar -xf node-v16.17.1-linux-x64.tar.xz
  16. # Move the extracted folder to /usr/local/lib
  17. sudo mv node-v16.17.1-linux-x64 /usr/local/lib/
  18. # Create a symbolic link to the node executable
  19. sudo ln -s /usr/local/lib/node-v16.17.1-linux-x64/bin/node /usr/local/bin/node
  20. node -v
  21. #NPM
  22. sudo yum install npm
  23. #INSTALLING NODE JS
  24. npm install -g pm2
  25. npm install -g ember-cli
  26. npm install -g loopback-cli
  27. #PRODUCTION A SETUP
  28. cd ~
  29. cd Desktop
  30. mkdir chess
  31. cd chess
  32. mkdir production_A
  33. cd production_A
  34. cd ..
  35. git clone http://git.bbh.org.in/chess/cihsr-config-production
  36. cd cihsr-config-production
  37. git checkout production
  38. npm i
  39. #TO CREATE SYMLINK
  40. cd ..
  41. ln -s cihsr-config-production/ config
  42. git clone http://git.bbh.org.in/chess/ember-masonry-grid
  43. cd ember-masonry-grid
  44. git checkout production
  45. npm i
  46. cd ..
  47. git clone http://git.bbh.org.in/chess/bbhverse
  48. cd bbhverse
  49. git checkout production
  50. npm i
  51. cd ..
  52. git clone http://git.bbh.org.in/chess/clientverse
  53. cd clientverse
  54. git checkout production
  55. npm i
  56. cd ..
  57. git clone http://git.bbh.org.in/chess/serververse
  58. cd serververse
  59. git checkout production
  60. npm i
  61. cd ..
  62. git clone http://git.bbh.org.in/chess/client
  63. cd client
  64. git checkout production
  65. npm i
  66. cd ..
  67. git clone http://git.bbh.org.in/chess/elxr
  68. cd elxr
  69. git checkout production
  70. npm i
  71. cd ..
  72. git clone http://git.bbh.org.in/chess/ember-searchable-select
  73. cd ember-searchable-select
  74. git checkout production
  75. npm i
  76. cd ..
  77. git clone http://git.bbh.org.in/chess/loopback-component-jsonapi
  78. cd loopback-component-jsonapi
  79. git checkout production
  80. npm i
  81. cd ..
  82. git clone http://git.bbh.org.in/chess/loopback-jsonapi-model-serializer
  83. cd loopback-jsonapi-model-serializer
  84. git checkout production
  85. npm i
  86. cd ..
  87. git clone http://git.bbh.org.in/chess/loopback-connector-mysql
  88. cd loopback-connector-mysql
  89. git checkout production
  90. npm i
  91. cd ..
  92. git clone http://git.bbh.org.in/chess/cihsr-data
  93. cd cihsr-data
  94. git checkout production
  95. npm i
  96. cd ..
  97. git clone http://git.bbh.org.in/chess/loopback-connector-ds
  98. cd loopback-connector-ds
  99. git checkout production
  100. npm i
  101. cd ..
  102. git clone http://git.bbh.org.in/chess/chess-server-lib
  103. cd chess-server-lib
  104. git checkout production
  105. npm i
  106. cd ..
  107. git clone http://git.bbh.org.in/chess/setup
  108. cd setup
  109. git checkout production
  110. npm i
  111. cd ..
  112. git clone http://git.bbh.org.in/chess/elixir-client-todos
  113. cd elixir-client-todos
  114. git checkout production
  115. npm i
  116. cd ..
  117. git clone http://git.bbh.org.in/chess/ember-service-worker
  118. cd ember-service-worker
  119. git checkout production
  120. npm i
  121. cd ..
  122. git clone http://git.bbh.org.in/chess/ember-service-worker-asset-cache
  123. cd ember-service-worker-asset-cache
  124. git checkout production
  125. npm i
  126. cd ..
  127. git clone http://git.bbh.org.in/chess/ember-service-worker-cache-fallback
  128. cd ember-service-worker-cache-fallback
  129. git checkout production
  130. npm i
  131. cd ..
  132. git clone http://git.bbh.org.in/chess/ember-service-worker-index
  133. cd ember-service-worker-index
  134. git checkout production
  135. npm i
  136. cd ..
  137. git clone http://git.bbh.org.in/chess/ember-sw-client-route
  138. cd ember-sw-client-route
  139. git checkout production
  140. npm i
  141. cd ..
  142. git clone http://git.bbh.org.in/chess/global-this
  143. cd global-this
  144. git checkout production
  145. npm i
  146. cd ..
  147. git clone http://git.bbh.org.in/chess/ember-cp-validations
  148. cd ember-cp-validations
  149. git checkout production
  150. npm i
  151. cd ..
  152. git clone http://git.bbh.org.in/chess/chess-client-lib
  153. cd chess-client-lib
  154. git checkout production
  155. npm i
  156. cd ..
  157. git clone http://git.bbh.org.in/chess/loopback-connector
  158. cd loopback-connector
  159. git checkout production
  160. npm i
  161. cd ..
  162. git clone http://git.bbh.org.in/chess/loopback
  163. cd loopback
  164. git checkout production
  165. npm i
  166. cd ..
  167. git clone http://git.bbh.org.in/chess/loopback-datasource-juggler
  168. cd loopback-datasource-juggler
  169. git checkout production
  170. npm i
  171. cd ..
  172. git clone http://git.bbh.org.in/chess/loopback-connector-mssql
  173. cd loopback-connector-mssql
  174. git checkout production
  175. npm i
  176. cd ..
  177. git clone http://git.bbh.org.in/chess/loopback-filters
  178. cd loopback-filters
  179. git checkout production
  180. npm i
  181. cd ..
  182. git clone http://git.bbh.org.in/chess/loopback-connector-sqlite3
  183. cd loopback-connector-sqlite3
  184. git checkout production
  185. npm i
  186. cd ..
  187. git clone http://git.bbh.org.in/chess/Trias-Elixir_Hybrid
  188. cd Trias-Elixir_Hybrid
  189. git checkout production
  190. npm i
  191. cd ..
  192. git clone http://git.bbh.org.in/chess/bbh_patient_portal
  193. cd bbh_patient_portal
  194. git checkout production
  195. npm i
  196. cd ..
  197. git clone http://git.bbh.org.in/chess/project-genesis-frontend
  198. cd project-genesis-frontend
  199. git checkout production
  200. npm i
  201. cd ..
  202. git clone http://git.bbh.org.in/chess/project-genesis-backend
  203. cd project-genesis-backend
  204. git checkout production
  205. npm i
  206. cd ..
  207. git clone http://git.bbh.org.in/chess/processmanager
  208. cd processmanager
  209. git checkout production
  210. npm i