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

linux_setup_el.sh 8.6KB

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