555
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.

linux_prodsync.sh 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  1. # Download steps
  2. # wget http://git.bbh.org.in/chess/elxr/raw/branch/master/linux_prodsync.sh
  3. # chmod +x linux_prodsync.sh
  4. # ./linux_prodsync.sh
  5. cd ~
  6. cd Desktop
  7. cd chess
  8. cd production_A
  9. cd cihsr-config-production
  10. git checkout production
  11. git pull
  12. git pull origin master
  13. rm -rf package-lock.json
  14. npm i --force
  15. cd ..
  16. cd cihsr-data
  17. git checkout production
  18. git pull
  19. # git pull origin master
  20. rm -rf package-lock.json
  21. npm i --force
  22. cd ..
  23. cd cihsr-clientconfig-production
  24. git checkout production
  25. git pull
  26. git pull origin master
  27. rm -rf package-lock.json
  28. npm i --force
  29. cd ..
  30. cd ember-masonry-grid
  31. git checkout production
  32. git pull
  33. git pull origin master
  34. rm -rf package-lock.json
  35. npm i --force
  36. cd ..
  37. cd bbhverse
  38. git checkout production
  39. git pull
  40. git pull origin master
  41. rm -rf package-lock.json
  42. npm i --force
  43. cd ..
  44. cd clientverse
  45. git checkout production
  46. git pull
  47. git pull origin master
  48. rm -rf package-lock.json
  49. npm i --force
  50. cd ..
  51. cd serververse
  52. git checkout production
  53. git pull
  54. git pull origin master
  55. rm -rf package-lock.json
  56. npm i --force
  57. cd ..
  58. cd elxr
  59. git checkout production
  60. git pull
  61. git pull origin master
  62. rm -rf package-lock.json
  63. npm i --force
  64. cd ..
  65. cd ember-searchable-select
  66. git checkout production
  67. git pull
  68. git pull origin master
  69. rm -rf package-lock.json
  70. npm i --force
  71. cd ..
  72. cd loopback-component-jsonapi
  73. git checkout production
  74. git pull
  75. git pull origin master
  76. rm -rf package-lock.json
  77. npm i --force
  78. cd ..
  79. cd loopback-jsonapi-model-serializer
  80. git checkout production
  81. git pull
  82. git pull origin master
  83. rm -rf package-lock.json
  84. npm i --force
  85. npm run build
  86. cd ..
  87. cd loopback-connector-mysql
  88. git checkout production
  89. git pull
  90. git pull origin master
  91. rm -rf package-lock.json
  92. npm i --force
  93. cd ..
  94. cd loopback-connector-ds
  95. git checkout production
  96. git pull
  97. git pull origin master
  98. rm -rf package-lock.json
  99. npm i --force
  100. cd ..
  101. cd setup
  102. git checkout production
  103. git pull
  104. git pull origin master
  105. rm -rf package-lock.json
  106. npm i --force
  107. cd ..
  108. cd ember-service-worker
  109. git checkout production
  110. git pull
  111. git pull origin master
  112. rm -rf package-lock.json
  113. npm i --force
  114. cd ..
  115. cd ember-service-worker-asset-cache
  116. git checkout production
  117. git pull
  118. git pull origin master
  119. rm -rf package-lock.json
  120. npm i --force
  121. cd ..
  122. cd ember-service-worker-cache-fallback
  123. git checkout production
  124. git pull
  125. git pull origin master
  126. rm -rf package-lock.json
  127. npm i --force
  128. cd ..
  129. cd ember-service-worker-index
  130. git checkout production
  131. git pull
  132. git pull origin master
  133. rm -rf package-lock.json
  134. npm i --force
  135. cd ..
  136. cd ember-sw-client-route
  137. git checkout production
  138. git pull
  139. git pull origin master
  140. rm -rf package-lock.json
  141. npm i --force
  142. cd ..
  143. cd global-this
  144. git checkout production
  145. git pull
  146. git pull origin master
  147. rm -rf package-lock.json
  148. npm i --force
  149. cd ..
  150. cd ember-cp-validations
  151. git checkout production
  152. git pull
  153. git pull origin master
  154. rm -rf package-lock.json
  155. npm i --force
  156. cd ..
  157. cd loopback-connector
  158. git checkout production
  159. git pull
  160. git pull origin master
  161. rm -rf package-lock.json
  162. npm i --force
  163. cd ..
  164. cd loopback
  165. git checkout production
  166. git pull
  167. git pull origin master
  168. rm -rf package-lock.json
  169. npm i --force
  170. cd ..
  171. cd loopback-datasource-juggler
  172. git checkout production
  173. git pull
  174. git pull origin master
  175. rm -rf package-lock.json
  176. npm i --force
  177. cd ..
  178. cd loopback-connector-mssql
  179. git checkout production
  180. git pull
  181. git pull origin master
  182. rm -rf package-lock.json
  183. npm i --force
  184. cd ..
  185. cd loopback-filters
  186. git checkout production
  187. git pull
  188. git pull origin master
  189. rm -rf package-lock.json
  190. npm i --force
  191. cd ..
  192. cd loopback-connector-sqlite3
  193. git checkout production
  194. git pull
  195. git pull origin master
  196. rm -rf package-lock.json
  197. npm i --force
  198. cd ..
  199. cd chess-server-lib
  200. git checkout production
  201. git pull
  202. git pull origin master
  203. rm -rf package-lock.json
  204. npm i --force
  205. cd server
  206. rm -rf package-lock.json
  207. npm i --force
  208. cd ..
  209. cd ..
  210. cd cihsr-server
  211. git checkout production
  212. git pull
  213. git pull origin master
  214. rm -rf package-lock.json
  215. npm i --force
  216. cd ..
  217. cd bbh_patient_portal
  218. git checkout production
  219. git pull
  220. git pull origin master
  221. rm -rf package-lock.json
  222. npm i --force
  223. cd ..
  224. cd project-genesis-frontend
  225. git checkout production
  226. git pull
  227. git pull origin master
  228. rm -rf package-lock.json
  229. npm i --force
  230. cd ..
  231. cd project-genesis-backend
  232. git checkout production
  233. git pull
  234. git pull origin master
  235. rm -rf package-lock.json
  236. npm i --force
  237. cd ..
  238. cd processmanager
  239. git checkout production
  240. git pull
  241. git pull origin master
  242. rm -rf package-lock.json
  243. npm i --force
  244. cd ..
  245. cd client
  246. git checkout production
  247. git pull
  248. git pull origin master
  249. rm -rf package-lock.json
  250. npm i --force
  251. bower install
  252. node_modules/.bin/bower install
  253. cd ..
  254. cd chess-client-lib
  255. git checkout production
  256. git pull
  257. git pull origin master
  258. rm -rf package-lock.json
  259. npm i --force
  260. cd ..
  261. cd elixir-client
  262. git checkout production
  263. git pull
  264. git pull origin master
  265. rm -rf package-lock.json
  266. npm i --force
  267. cd chess-client-lib
  268. rm -rf package-lock.json
  269. npm i --force
  270. cd ..
  271. cd client
  272. rm -rf package-lock.json
  273. npm i --force
  274. node_modules/.bin/bower i
  275. npm run build-prod
  276. pm2 kill
  277. cd ../processmanager
  278. pm2 start ecosystem-config.js --env production