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

linux_setup.sh 5.0KB

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