選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

linux_setup.sh 7.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  1. # wget https://git.bbh.org.in/chess/elxr/raw/branch/master/linux_setup.sh
  2. #STORE GIT CREDENTIALS IN CACHE
  3. sudo yum install git
  4. # git config --global --unset credential.helper
  5. git config --global credential.helper store
  6. # git config --global credential.helper 'store --file ~/.git-credentials'
  7. # echo "Enter git username: "
  8. # read gitUser
  9. # echo "username=$gitUser" >> ~/.git-credentials
  10. # echo "Enter git password: "
  11. # read gitPassword
  12. # echo "password=$gitPassword" >> ~/.git-credentials
  13. # chmod 0600 ~/.git-credentials
  14. # Install prerequisites
  15. #NODE JS 16.17.1
  16. wget https://nodejs.org/dist/v16.17.1/node-v16.17.1-linux-x64.tar.xz
  17. tar -xf node-v16.17.1-linux-x64.tar.xz
  18. # Move the extracted folder to /usr/local/lib
  19. sudo mv node-v16.17.1-linux-x64 /usr/local/lib/
  20. # Create a symbolic link to the node executable
  21. sudo ln -s /usr/local/lib/node-v16.17.1-linux-x64/bin/node /usr/local/bin/node
  22. node -v
  23. #NPM
  24. sudo yum install npm
  25. #INSTALLING NODE JS
  26. npm install -g pm2
  27. npm install -g ember-cli
  28. npm install -g loopback-cli
  29. #production A SETUP
  30. cd ~
  31. cd Desktop
  32. mkdir chess
  33. cd chess
  34. mkdir production_A
  35. cd production_A
  36. # echo "Enter instance type: eg production/production"
  37. # read instancetype
  38. # echo "Enter FolderName: eg A/B/C"
  39. # read foldername
  40. # # echo "username=$gitUser" >> ~/.git-credentials
  41. # mkdir $instancetype_$foldername
  42. # cd $instancetype_$foldername
  43. git clone http://git.bbh.org.in/chess/cihsr-config-production
  44. cd cihsr-config-production
  45. git checkout production
  46. git pull
  47. git pull origin master
  48. rm -rf package-lock.json
  49. npm i --force
  50. #TO CREATE SYMLINK
  51. cd ..
  52. ln -s cihsr-config-production/ config
  53. git clone http://git.bbh.org.in/chess/cihsr-data
  54. cd cihsr-data
  55. git checkout production
  56. git pull
  57. # git pull origin master
  58. rm -rf package-lock.json
  59. npm i --force
  60. cd ..
  61. ln -s cihsr-data/ data
  62. git clone http://git.bbh.org.in/chess/ember-masonry-grid
  63. cd ember-masonry-grid
  64. git checkout production
  65. git pull
  66. git pull origin master
  67. rm -rf package-lock.json
  68. npm i --force
  69. cd ..
  70. git clone http://git.bbh.org.in/chess/bbhverse
  71. cd bbhverse
  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/clientverse
  79. cd clientverse
  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. git clone http://git.bbh.org.in/chess/serververse
  87. cd serververse
  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/elxr
  95. cd elxr
  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/ember-searchable-select
  103. cd ember-searchable-select
  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/loopback-component-jsonapi
  111. cd loopback-component-jsonapi
  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/loopback-jsonapi-model-serializer
  119. cd loopback-jsonapi-model-serializer
  120. git checkout production
  121. git pull
  122. git pull origin master
  123. rm -rf package-lock.json
  124. npm i --force
  125. npm run build
  126. cd ..
  127. git clone http://git.bbh.org.in/chess/loopback-connector-mysql
  128. cd loopback-connector-mysql
  129. git checkout production
  130. git pull
  131. git pull origin master
  132. rm -rf package-lock.json
  133. npm i --force
  134. cd ..
  135. git clone http://git.bbh.org.in/chess/loopback-connector-ds
  136. cd loopback-connector-ds
  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. git clone http://git.bbh.org.in/chess/setup
  144. cd setup
  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/ember-service-worker
  152. cd ember-service-worker
  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/ember-service-worker-asset-cache
  160. cd ember-service-worker-asset-cache
  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-cache-fallback
  168. cd ember-service-worker-cache-fallback
  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-index
  176. cd ember-service-worker-index
  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-sw-client-route
  184. cd ember-sw-client-route
  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/global-this
  192. cd global-this
  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-cp-validations
  200. cd ember-cp-validations
  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/loopback-connector
  208. cd loopback-connector
  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/loopback
  216. cd loopback
  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-datasource-juggler
  224. cd loopback-datasource-juggler
  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-connector-mssql
  232. cd loopback-connector-mssql
  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-filters
  240. cd loopback-filters
  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-sqlite3
  248. cd loopback-connector-sqlite3
  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/chess-server-lib
  256. cd chess-server-lib
  257. git checkout production
  258. git pull
  259. git pull origin master
  260. rm -rf package-lock.json
  261. npm i --force
  262. cd server
  263. rm -rf package-lock.json
  264. npm i --force
  265. cd ..
  266. cd ..
  267. git clone http://git.bbh.org.in/chess/cihsr-server
  268. cd cihsr-server
  269. git checkout production
  270. git pull
  271. git pull origin master
  272. rm -rf package-lock.json
  273. npm i --force
  274. cd ..
  275. git clone http://git.bbh.org.in/chess/bbh_patient_portal
  276. cd bbh_patient_portal
  277. git checkout production
  278. git pull
  279. git pull origin master
  280. rm -rf package-lock.json
  281. npm i --force
  282. cd ..
  283. git clone http://git.bbh.org.in/chess/project-genesis-frontend
  284. cd project-genesis-frontend
  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/project-genesis-backend
  292. cd project-genesis-backend
  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/processmanager
  300. cd processmanager
  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/client
  308. cd client
  309. git checkout production
  310. git pull
  311. git pull origin master
  312. rm -rf package-lock.json
  313. npm i --force
  314. bower install
  315. node_modules/.bin/bower install
  316. cd ..
  317. git clone http://git.bbh.org.in/chess/chess-client-lib
  318. cd chess-client-lib
  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/elixir-client
  326. cd elixir-client
  327. git checkout production
  328. git pull
  329. git pull origin master
  330. rm -rf package-lock.json
  331. npm i --force
  332. cd chess-client-lib
  333. rm -rf package-lock.json
  334. npm i --force
  335. cd ..
  336. cd client
  337. rm -rf package-lock.json
  338. npm i --force
  339. node_modules/.bin/bower i
  340. node_modules/.bin/ember s