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