123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408 |
- # Download steps
- # wget http://git.bbh.org.in/chess/elxr/raw/branch/master/linux_setup_el.sh
- # chmod +x linux_setup_el.sh
- # ./linux_setup_el.sh
-
- # To delete all directories
- # find /path/to/your/directory -type d -exec rm -r {} +
- # find . -type d -exec rm -r {} +
-
- #STORE GIT CREDENTIALS IN CACHE
- sudo yum install git
- # git config --global --unset credential.helper
- git config --global credential.helper store
- # git config --global credential.helper 'store --file ~/.git-credentials'
- # echo "Enter git username: "
- # read gitUser
- # echo "username=$gitUser" >> ~/.git-credentials
- # echo "Enter git password: "
- # read gitPassword
- # echo "password=$gitPassword" >> ~/.git-credentials
- # chmod 0600 ~/.git-credentials
-
- # Install prerequisites
- #NODE JS 16.17.1
- wget https://nodejs.org/dist/v16.17.1/node-v16.17.1-linux-x64.tar.xz
- tar -xf node-v16.17.1-linux-x64.tar.xz
- # Move the extracted folder to /usr/local/lib
- sudo mv node-v16.17.1-linux-x64 /usr/local/lib/
- # Create a symbolic link to the node executable
- sudo ln -s /usr/local/lib/node-v16.17.1-linux-x64/bin/node /usr/local/bin/node
- node -v
-
- #NPM
- sudo yum install npm
-
-
- #INSTALLING NODE JS
- npm install -g pm2
- npm install -g ember-cli
- npm install -g loopback-cli
-
- #production A SETUP
- mkdir chess
- cd chess
- mkdir production_A
- cd production_A
-
- # echo "Enter instance type: eg production/production"
- # read instancetype
- # echo "Enter FolderName: eg A/B/C"
- # read foldername
-
- # # echo "username=$gitUser" >> ~/.git-credentials
-
- # mkdir $instancetype_$foldername
- # cd $instancetype_$foldername
- npm install pm2 -g
- ln -s elixir-config-production/ elixir-config-production
-
- git clone http://git.bbh.org.in/chess/elixir-config-production
- cd elixir-config-production
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- #TO CREATE SYMLINK
- cd ..
- ln -s elixir-config-production/ config
-
- git clone http://git.bbh.org.in/chess/elixir-data
- cd elixir-data
- git checkout production
- git pull
- # git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- ln -s elixir-data/ data
-
- git clone http://git.bbh.org.in/chess/ember-masonry-grid
- cd ember-masonry-grid
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- git clone http://git.bbh.org.in/chess/elixir-clientconfig-production
- cd elixir-clientconfig-production
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- ln -s elixir-clientconfig-production/ clientconfig
-
- cd ..
- git clone http://git.bbh.org.in/chess/bbhverse
- cd bbhverse
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- git clone http://git.bbh.org.in/chess/clientverse
- cd clientverse
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- git clone http://git.bbh.org.in/chess/serververse
- cd serververse
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- git clone http://git.bbh.org.in/chess/elxr
- cd elxr
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- git clone http://git.bbh.org.in/chess/ember-searchable-select
- cd ember-searchable-select
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- git clone http://git.bbh.org.in/chess/loopback-component-jsonapi
- cd loopback-component-jsonapi
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- git clone http://git.bbh.org.in/chess/loopback-jsonapi-model-serializer
- cd loopback-jsonapi-model-serializer
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
- npm run build
-
- cd ..
- git clone http://git.bbh.org.in/chess/loopback-connector-mysql
- cd loopback-connector-mysql
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- git clone http://git.bbh.org.in/chess/loopback-connector-ds
- cd loopback-connector-ds
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- git clone http://git.bbh.org.in/chess/setup
- cd setup
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- git clone http://git.bbh.org.in/chess/ember-service-worker
- cd ember-service-worker
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- git clone http://git.bbh.org.in/chess/ember-service-worker-asset-cache
- cd ember-service-worker-asset-cache
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- git clone http://git.bbh.org.in/chess/ember-service-worker-cache-fallback
- cd ember-service-worker-cache-fallback
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- git clone http://git.bbh.org.in/chess/ember-service-worker-index
- cd ember-service-worker-index
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- git clone http://git.bbh.org.in/chess/ember-sw-client-route
- cd ember-sw-client-route
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- git clone http://git.bbh.org.in/chess/global-this
- cd global-this
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- git clone http://git.bbh.org.in/chess/ember-cp-validations
- cd ember-cp-validations
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- git clone http://git.bbh.org.in/chess/loopback-connector
- cd loopback-connector
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- git clone http://git.bbh.org.in/chess/loopback
- cd loopback
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- git clone http://git.bbh.org.in/chess/loopback-datasource-juggler
- cd loopback-datasource-juggler
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- git clone http://git.bbh.org.in/chess/loopback-connector-mssql
- cd loopback-connector-mssql
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- git clone http://git.bbh.org.in/chess/loopback-filters
- cd loopback-filters
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- git clone http://git.bbh.org.in/chess/loopback-connector-sqlite3
- cd loopback-connector-sqlite3
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- git clone http://git.bbh.org.in/chess/chess-server-lib
- cd chess-server-lib
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd server
- rm -rf package-lock.json
- npm i --force
- cd ..
-
- cd ..
- git clone http://git.bbh.org.in/chess/elixir-server
- cd elixir-server
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- git clone http://git.bbh.org.in/chess/bbh_patient_portal
- cd bbh_patient_portal
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- git clone http://git.bbh.org.in/chess/project-genesis-frontend
- cd project-genesis-frontend
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- git clone http://git.bbh.org.in/chess/project-genesis-backend
- cd project-genesis-backend
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- git clone http://git.bbh.org.in/chess/processmanager
- cd processmanager
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- git clone http://git.bbh.org.in/chess/client
- cd client
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
- bower install
- node_modules/.bin/bower install
-
- cd ..
- git clone http://git.bbh.org.in/chess/chess-client-lib
- cd chess-client-lib
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd ..
- git clone http://git.bbh.org.in/chess/elixir-client
- cd elixir-client
- git checkout production
- git pull
- git pull origin master
- rm -rf package-lock.json
- npm i --force
-
- cd chess-client-lib
- rm -rf package-lock.json
- npm i --force
- cd ..
-
- cd client
- rm -rf package-lock.json
- npm i --force
- node_modules/.bin/bower i
- node_modules/.bin/ember s
|