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.

linux_setup.sh 5.0KB

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