| node --version | node --version | ||||
| npm --version | npm --version | ||||
| npm install -g @angular/cli | npm install -g @angular/cli | ||||
| npm install pm2 | |||||
| npm install -g pm2 | |||||
| pm2 install typescript | |||||
| # echo "Enter the version of node you want to install: (Example. 'v16.19.1')" | # echo "Enter the version of node you want to install: (Example. 'v16.19.1')" | ||||
| # read nodeversion | # read nodeversion | ||||
| # nvm install $nodeversion | # nvm install $nodeversion | ||||
| #ADDING GIT DOMAIN NAME TO HOSTS | |||||
| # echo "10.10.5.77 git.bbh.org.in" >> /etc/hosts | |||||
| #PRODUCTION A SETUP | #PRODUCTION A SETUP | ||||
| cd ~ | cd ~ | ||||
| cd Desktop | cd Desktop | ||||
| npm i | npm i | ||||
| cd .. | cd .. | ||||
| git clone http://git.bbh.org.in/chess/elixir-config-development | |||||
| cd elixir-config-development | |||||
| git clone http://git.bbh.org.in/chess/elixir-config-production | |||||
| cd elixir-config-production | |||||
| git checkout production | git checkout production | ||||
| npm i | npm i | ||||
| git checkout production | git checkout production | ||||
| npm i | npm i | ||||
| #TO CREATE SYMLINK | |||||
| cd .. | |||||
| ln -s elixir-config-production/ config | |||||
| #PRODUCTION B SETUP | #PRODUCTION B SETUP | ||||
| cd ~ | cd ~ | ||||
| cd Desktop | cd Desktop | ||||
| npm i | npm i | ||||
| cd .. | cd .. | ||||
| git clone http://git.bbh.org.in/chess/elixir-config-development | |||||
| cd elixir-config-development | |||||
| git clone http://git.bbh.org.in/chess/elixir-config-production | |||||
| cd elixir-config-production | |||||
| git checkout production | git checkout production | ||||
| npm i | npm i | ||||
| git clone http://git.bbh.org.in/chess/processmanager | git clone http://git.bbh.org.in/chess/processmanager | ||||
| cd processmanager | cd processmanager | ||||
| git checkout production | git checkout production | ||||
| npm i | |||||
| npm i | |||||
| #TO CREATE SYMLINK | |||||
| cd .. | |||||
| ln -s elixir-config-production/ config |