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.

преди 11 месеца
преди 11 месеца
преди 11 месеца
преди 11 месеца
преди 11 месеца
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  1. # Download steps
  2. # wget http://git.bbh.org.in/chess/elxr/raw/branch/master/linux_setup_el.sh
  3. # chmod +x linux_setup_el.sh
  4. # ./linux_setup_el.sh
  5. # To delete all directories
  6. # find /path/to/your/directory -type d -exec rm -r {} +
  7. # find . -type d -exec rm -r {} +
  8. #STORE GIT CREDENTIALS IN CACHE
  9. sudo yum install git
  10. # git config --global --unset credential.helper
  11. git config --global credential.helper store
  12. # git config --global credential.helper 'store --file ~/.git-credentials'
  13. # echo "Enter git username: "
  14. # read gitUser
  15. # echo "username=$gitUser" >> ~/.git-credentials
  16. # echo "Enter git password: "
  17. # read gitPassword
  18. # echo "password=$gitPassword" >> ~/.git-credentials
  19. # chmod 0600 ~/.git-credentials
  20. # Install prerequisites
  21. #NODE JS 16.17.1
  22. wget https://nodejs.org/dist/v16.17.1/node-v16.17.1-linux-x64.tar.xz
  23. tar -xf node-v16.17.1-linux-x64.tar.xz
  24. # Move the extracted folder to /usr/local/lib
  25. sudo mv node-v16.17.1-linux-x64 /usr/local/lib/
  26. # Create a symbolic link to the node executable
  27. sudo ln -s /usr/local/lib/node-v16.17.1-linux-x64/bin/node /usr/local/bin/node
  28. node -v
  29. #NPM
  30. sudo yum install npm
  31. #INSTALLING NODE JS
  32. npm install -g pm2
  33. npm install -g ember-cli
  34. npm install -g loopback-cli
  35. #production A SETUP
  36. mkdir chess
  37. cd chess
  38. mkdir production_A
  39. cd production_A
  40. # echo "Enter instance type: eg production/production"
  41. # read instancetype
  42. # echo "Enter FolderName: eg A/B/C"
  43. # read foldername
  44. # # echo "username=$gitUser" >> ~/.git-credentials
  45. # mkdir $instancetype_$foldername
  46. # cd $instancetype_$foldername
  47. npm install pm2 -g
  48. ln -s elixir-config-production/ elixir-config-production
  49. git clone http://git.bbh.org.in/chess/elixir-config-production
  50. cd elixir-config-production
  51. git checkout production
  52. git pull
  53. git pull origin master
  54. rm -rf package-lock.json
  55. npm i --force
  56. #TO CREATE SYMLINK
  57. cd ..
  58. ln -s elixir-config-production/ config
  59. git clone http://git.bbh.org.in/chess/elixir-data
  60. cd elixir-data
  61. git checkout production
  62. git pull
  63. # git pull origin master
  64. rm -rf package-lock.json
  65. npm i --force
  66. cd ..
  67. ln -s elixir-data/ data
  68. git clone http://git.bbh.org.in/chess/ember-masonry-grid
  69. cd ember-masonry-grid
  70. git checkout production
  71. git pull
  72. git pull origin master
  73. rm -rf package-lock.json
  74. npm i --force
  75. cd ..
  76. git clone http://git.bbh.org.in/chess/elixir-clientconfig-production
  77. cd elixir-clientconfig-production
  78. git checkout production
  79. git pull
  80. git pull origin master
  81. rm -rf package-lock.json
  82. npm i --force
  83. cd ..
  84. ln -s elixir-clientconfig-production/ clientconfig
  85. cd ..
  86. git clone http://git.bbh.org.in/chess/bbhverse
  87. cd bbhverse
  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. git clone http://git.bbh.org.in/chess/clientverse
  95. cd clientverse
  96. git checkout production
  97. git pull
  98. git pull origin master
  99. rm -rf package-lock.json
  100. npm i --force
  101. cd ..
  102. git clone http://git.bbh.org.in/chess/serververse
  103. cd serververse
  104. git checkout production
  105. git pull
  106. git pull origin master
  107. rm -rf package-lock.json
  108. npm i --force
  109. cd ..
  110. git clone http://git.bbh.org.in/chess/elxr
  111. cd elxr
  112. git checkout production
  113. git pull
  114. git pull origin master
  115. rm -rf package-lock.json
  116. npm i --force
  117. cd ..
  118. git clone http://git.bbh.org.in/chess/ember-searchable-select
  119. cd ember-searchable-select
  120. git checkout production
  121. git pull
  122. git pull origin master
  123. rm -rf package-lock.json
  124. npm i --force
  125. cd ..
  126. git clone http://git.bbh.org.in/chess/loopback-component-jsonapi
  127. cd loopback-component-jsonapi
  128. git checkout production
  129. git pull
  130. git pull origin master
  131. rm -rf package-lock.json
  132. npm i --force
  133. cd ..
  134. git clone http://git.bbh.org.in/chess/loopback-jsonapi-model-serializer
  135. cd loopback-jsonapi-model-serializer
  136. git checkout production
  137. git pull
  138. git pull origin master
  139. rm -rf package-lock.json
  140. npm i --force
  141. npm run build
  142. cd ..
  143. git clone http://git.bbh.org.in/chess/loopback-connector-mysql
  144. cd loopback-connector-mysql
  145. git checkout production
  146. git pull
  147. git pull origin master
  148. rm -rf package-lock.json
  149. npm i --force
  150. cd ..
  151. git clone http://git.bbh.org.in/chess/loopback-connector-ds
  152. cd loopback-connector-ds
  153. git checkout production
  154. git pull
  155. git pull origin master
  156. rm -rf package-lock.json
  157. npm i --force
  158. cd ..
  159. git clone http://git.bbh.org.in/chess/setup
  160. cd setup
  161. git checkout production
  162. git pull
  163. git pull origin master
  164. rm -rf package-lock.json
  165. npm i --force
  166. cd ..
  167. git clone http://git.bbh.org.in/chess/ember-service-worker
  168. cd ember-service-worker
  169. git checkout production
  170. git pull
  171. git pull origin master
  172. rm -rf package-lock.json
  173. npm i --force
  174. cd ..
  175. git clone http://git.bbh.org.in/chess/ember-service-worker-asset-cache
  176. cd ember-service-worker-asset-cache
  177. git checkout production
  178. git pull
  179. git pull origin master
  180. rm -rf package-lock.json
  181. npm i --force
  182. cd ..
  183. git clone http://git.bbh.org.in/chess/ember-service-worker-cache-fallback
  184. cd ember-service-worker-cache-fallback
  185. git checkout production
  186. git pull
  187. git pull origin master
  188. rm -rf package-lock.json
  189. npm i --force
  190. cd ..
  191. git clone http://git.bbh.org.in/chess/ember-service-worker-index
  192. cd ember-service-worker-index
  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. git clone http://git.bbh.org.in/chess/ember-sw-client-route
  200. cd ember-sw-client-route
  201. git checkout production
  202. git pull
  203. git pull origin master
  204. rm -rf package-lock.json
  205. npm i --force
  206. cd ..
  207. git clone http://git.bbh.org.in/chess/global-this
  208. cd global-this
  209. git checkout production
  210. git pull
  211. git pull origin master
  212. rm -rf package-lock.json
  213. npm i --force
  214. cd ..
  215. git clone http://git.bbh.org.in/chess/ember-cp-validations
  216. cd ember-cp-validations
  217. git checkout production
  218. git pull
  219. git pull origin master
  220. rm -rf package-lock.json
  221. npm i --force
  222. cd ..
  223. git clone http://git.bbh.org.in/chess/loopback-connector
  224. cd loopback-connector
  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. git clone http://git.bbh.org.in/chess/loopback
  232. cd loopback
  233. git checkout production
  234. git pull
  235. git pull origin master
  236. rm -rf package-lock.json
  237. npm i --force
  238. cd ..
  239. git clone http://git.bbh.org.in/chess/loopback-datasource-juggler
  240. cd loopback-datasource-juggler
  241. git checkout production
  242. git pull
  243. git pull origin master
  244. rm -rf package-lock.json
  245. npm i --force
  246. cd ..
  247. git clone http://git.bbh.org.in/chess/loopback-connector-mssql
  248. cd loopback-connector-mssql
  249. git checkout production
  250. git pull
  251. git pull origin master
  252. rm -rf package-lock.json
  253. npm i --force
  254. cd ..
  255. git clone http://git.bbh.org.in/chess/loopback-filters
  256. cd loopback-filters
  257. git checkout production
  258. git pull
  259. git pull origin master
  260. rm -rf package-lock.json
  261. npm i --force
  262. cd ..
  263. git clone http://git.bbh.org.in/chess/loopback-connector-sqlite3
  264. cd loopback-connector-sqlite3
  265. git checkout production
  266. git pull
  267. git pull origin master
  268. rm -rf package-lock.json
  269. npm i --force
  270. cd ..
  271. git clone http://git.bbh.org.in/chess/chess-server-lib
  272. cd chess-server-lib
  273. git checkout production
  274. git pull
  275. git pull origin master
  276. rm -rf package-lock.json
  277. npm i --force
  278. cd server
  279. rm -rf package-lock.json
  280. npm i --force
  281. cd ..
  282. cd ..
  283. git clone http://git.bbh.org.in/chess/elixir-server
  284. cd elixir-server
  285. git checkout production
  286. git pull
  287. git pull origin master
  288. rm -rf package-lock.json
  289. npm i --force
  290. cd ..
  291. git clone http://git.bbh.org.in/chess/bbh_patient_portal
  292. cd bbh_patient_portal
  293. git checkout production
  294. git pull
  295. git pull origin master
  296. rm -rf package-lock.json
  297. npm i --force
  298. cd ..
  299. git clone http://git.bbh.org.in/chess/project-genesis-frontend
  300. cd project-genesis-frontend
  301. git checkout production
  302. git pull
  303. git pull origin master
  304. rm -rf package-lock.json
  305. npm i --force
  306. cd ..
  307. git clone http://git.bbh.org.in/chess/project-genesis-backend
  308. cd project-genesis-backend
  309. git checkout production
  310. git pull
  311. git pull origin master
  312. rm -rf package-lock.json
  313. npm i --force
  314. cd ..
  315. git clone http://git.bbh.org.in/chess/processmanager
  316. cd processmanager
  317. git checkout production
  318. git pull
  319. git pull origin master
  320. rm -rf package-lock.json
  321. npm i --force
  322. cd ..
  323. git clone http://git.bbh.org.in/chess/client
  324. cd client
  325. git checkout production
  326. git pull
  327. git pull origin master
  328. rm -rf package-lock.json
  329. npm i --force
  330. bower install
  331. node_modules/.bin/bower install
  332. cd ..
  333. git clone http://git.bbh.org.in/chess/chess-client-lib
  334. cd chess-client-lib
  335. git checkout production
  336. git pull
  337. git pull origin master
  338. rm -rf package-lock.json
  339. npm i --force
  340. cd ..
  341. git clone http://git.bbh.org.in/chess/elixir-client
  342. cd elixir-client
  343. git checkout production
  344. git pull
  345. git pull origin master
  346. rm -rf package-lock.json
  347. npm i --force
  348. cd chess-client-lib
  349. rm -rf package-lock.json
  350. npm i --force
  351. cd ..
  352. cd client
  353. rm -rf package-lock.json
  354. npm i --force
  355. node_modules/.bin/bower i
  356. node_modules/.bin/ember s