nginx
1.리액트 경로
/home/ubuntu/dist
.2. 프록시 설정
/api → localhost:8001
/socket.io → localhost:8002
cd /Users/tgkim/tenzoom/WebDeViper_Client
git pull
npm i
npm run build
scp -i /Users/tgkim/Documents/sesac_2st_prj/viper.pem -r /Users/tgkim/tenzoom/WebDeViper_Client/dist/* [email protected]:./dist/
scp -i /Users/tgkim/Documents/sesac_2st_prj/viper.pem -r /Users/tgkim/Documents/defaultGroup.png [email protected]:.
ssh -i /Users/tgkim/Documents/sesac_2st_prj/viper.pem [email protected]
cd /home/ubuntu/viper/WebDeViper_Server/server
git pull
npm i
pm2 start all
ssh -i /Users/tgkim/Documents/sesac_2st_prj/viper.pem [email protected]
cd /home/ubuntu/viper/WebDeViper_Server/socketServer
git pull
pm2 start socket.js