Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

linux_setup_el.sh 8.5KB

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. git clone http://git.bbh.org.in/chess/bbhverse
  88. cd bbhverse
  89. git checkout production
  90. git pull
  91. git pull origin master
  92. rm -rf package-lock.json
  93. npm i --force
  94. cd ..
  95. git clone http://git.bbh.org.in/chess/clientverse
  96. cd clientverse
  97. git checkout production
  98. git pull
  99. git pull origin master
  100. rm -rf package-lock.json
  101. npm i --force
  102. cd ..
  103. git clone http://git.bbh.org.in/chess/serververse
  104. cd serververse
  105. git checkout production
  106. git pull
  107. git pull origin master
  108. rm -rf package-lock.json
  109. npm i --force
  110. cd ..
  111. git clone http://git.bbh.org.in/chess/elxr
  112. cd elxr
  113. git checkout production
  114. git pull
  115. git pull origin master
  116. rm -rf package-lock.json
  117. npm i --force
  118. cd ..
  119. git clone http://git.bbh.org.in/chess/ember-searchable-select
  120. cd ember-searchable-select
  121. git checkout production
  122. git pull
  123. git pull origin master
  124. rm -rf package-lock.json
  125. npm i --force
  126. cd ..
  127. git clone http://git.bbh.org.in/chess/loopback-component-jsonapi
  128. cd loopback-component-jsonapi
  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-jsonapi-model-serializer
  136. cd loopback-jsonapi-model-serializer
  137. git checkout production
  138. git pull
  139. git pull origin master
  140. rm -rf package-lock.json
  141. npm i --force
  142. npm run build
  143. cd ..
  144. git clone http://git.bbh.org.in/chess/loopback-connector-mysql
  145. cd loopback-connector-mysql
  146. git checkout production
  147. git pull
  148. git pull origin master
  149. rm -rf package-lock.json
  150. npm i --force
  151. cd ..
  152. git clone http://git.bbh.org.in/chess/loopback-connector-ds
  153. cd loopback-connector-ds
  154. git checkout production
  155. git pull
  156. git pull origin master
  157. rm -rf package-lock.json
  158. npm i --force
  159. cd ..
  160. git clone http://git.bbh.org.in/chess/setup
  161. cd setup
  162. git checkout production
  163. git pull
  164. git pull origin master
  165. rm -rf package-lock.json
  166. npm i --force
  167. cd ..
  168. git clone http://git.bbh.org.in/chess/ember-service-worker
  169. cd ember-service-worker
  170. git checkout production
  171. git pull
  172. git pull origin master
  173. rm -rf package-lock.json
  174. npm i --force
  175. cd ..
  176. git clone http://git.bbh.org.in/chess/ember-service-worker-asset-cache
  177. cd ember-service-worker-asset-cache
  178. git checkout production
  179. git pull
  180. git pull origin master
  181. rm -rf package-lock.json
  182. npm i --force
  183. cd ..
  184. git clone http://git.bbh.org.in/chess/ember-service-worker-cache-fallback
  185. cd ember-service-worker-cache-fallback
  186. git checkout production
  187. git pull
  188. git pull origin master
  189. rm -rf package-lock.json
  190. npm i --force
  191. cd ..
  192. git clone http://git.bbh.org.in/chess/ember-service-worker-index
  193. cd ember-service-worker-index
  194. git checkout production
  195. git pull
  196. git pull origin master
  197. rm -rf package-lock.json
  198. npm i --force
  199. cd ..
  200. git clone http://git.bbh.org.in/chess/ember-sw-client-route
  201. cd ember-sw-client-route
  202. git checkout production
  203. git pull
  204. git pull origin master
  205. rm -rf package-lock.json
  206. npm i --force
  207. cd ..
  208. git clone http://git.bbh.org.in/chess/global-this
  209. cd global-this
  210. git checkout production
  211. git pull
  212. git pull origin master
  213. rm -rf package-lock.json
  214. npm i --force
  215. cd ..
  216. git clone http://git.bbh.org.in/chess/ember-cp-validations
  217. cd ember-cp-validations
  218. git checkout production
  219. git pull
  220. git pull origin master
  221. rm -rf package-lock.json
  222. npm i --force
  223. cd ..
  224. git clone http://git.bbh.org.in/chess/loopback-connector
  225. cd loopback-connector
  226. git checkout production
  227. git pull
  228. git pull origin master
  229. rm -rf package-lock.json
  230. npm i --force
  231. cd ..
  232. git clone http://git.bbh.org.in/chess/loopback
  233. cd loopback
  234. git checkout production
  235. git pull
  236. git pull origin master
  237. rm -rf package-lock.json
  238. npm i --force
  239. cd ..
  240. git clone http://git.bbh.org.in/chess/loopback-datasource-juggler
  241. cd loopback-datasource-juggler
  242. git checkout production
  243. git pull
  244. git pull origin master
  245. rm -rf package-lock.json
  246. npm i --force
  247. cd ..
  248. git clone http://git.bbh.org.in/chess/loopback-connector-mssql
  249. cd loopback-connector-mssql
  250. git checkout production
  251. git pull
  252. git pull origin master
  253. rm -rf package-lock.json
  254. npm i --force
  255. cd ..
  256. git clone http://git.bbh.org.in/chess/loopback-filters
  257. cd loopback-filters
  258. git checkout production
  259. git pull
  260. git pull origin master
  261. rm -rf package-lock.json
  262. npm i --force
  263. cd ..
  264. git clone http://git.bbh.org.in/chess/loopback-connector-sqlite3
  265. cd loopback-connector-sqlite3
  266. git checkout production
  267. git pull
  268. git pull origin master
  269. rm -rf package-lock.json
  270. npm i --force
  271. cd ..
  272. git clone http://git.bbh.org.in/chess/chess-server-lib
  273. cd chess-server-lib
  274. git checkout production
  275. git pull
  276. git pull origin master
  277. rm -rf package-lock.json
  278. npm i --force
  279. cd server
  280. rm -rf package-lock.json
  281. npm i --force
  282. cd ..
  283. cd ..
  284. git clone http://git.bbh.org.in/chess/elixir-server
  285. cd elixir-server
  286. git checkout production
  287. git pull
  288. git pull origin master
  289. rm -rf package-lock.json
  290. npm i --force
  291. cd ..
  292. git clone http://git.bbh.org.in/chess/bbh_patient_portal
  293. cd bbh_patient_portal
  294. git checkout production
  295. git pull
  296. git pull origin master
  297. rm -rf package-lock.json
  298. npm i --force
  299. cd ..
  300. git clone http://git.bbh.org.in/chess/project-genesis-frontend
  301. cd project-genesis-frontend
  302. git checkout production
  303. git pull
  304. git pull origin master
  305. rm -rf package-lock.json
  306. npm i --force
  307. cd ..
  308. git clone http://git.bbh.org.in/chess/project-genesis-backend
  309. cd project-genesis-backend
  310. git checkout production
  311. git pull
  312. git pull origin master
  313. rm -rf package-lock.json
  314. npm i --force
  315. cd ..
  316. git clone http://git.bbh.org.in/chess/processmanager
  317. cd processmanager
  318. git checkout production
  319. git pull
  320. git pull origin master
  321. rm -rf package-lock.json
  322. npm i --force
  323. cd ..
  324. git clone http://git.bbh.org.in/chess/client
  325. cd client
  326. git checkout production
  327. git pull
  328. git pull origin master
  329. rm -rf package-lock.json
  330. npm i --force
  331. bower install
  332. node_modules/.bin/bower install
  333. cd ..
  334. git clone http://git.bbh.org.in/chess/chess-client-lib
  335. cd chess-client-lib
  336. git checkout production
  337. git pull
  338. git pull origin master
  339. rm -rf package-lock.json
  340. npm i --force
  341. cd ..
  342. git clone http://git.bbh.org.in/chess/elixir-client
  343. cd elixir-client
  344. git checkout production
  345. git pull
  346. git pull origin master
  347. rm -rf package-lock.json
  348. npm i --force
  349. cd chess-client-lib
  350. rm -rf package-lock.json
  351. npm i --force
  352. cd ..
  353. cd client
  354. rm -rf package-lock.json
  355. npm i --force
  356. node_modules/.bin/bower i
  357. node_modules/.bin/ember s