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_setup.sh 8.1KB

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