# 이제 사용안함. CI-CD 구축완료
~~#서버 스타트 (백그라운드)
cd /home/ubuntu/GapBotApp/*
pm2 start npm --name "GapBotAppServer" -- start
# nginx 관련~~
sudo systemctl restart nginx
npm run build --verbose
sudo cp -r /home/ubuntu/GapBotApp/client/build/* /var/www/loagap
~~sudo tail -f /var/log/nginx/error.pm2log
pm~~
SSH Key
→ Source port : 3307 (3306은 mysql과 겹침 오류 가능성)
→ Destination : RDS_Endpoint:3306
우리는 3307로 세팅함.
.env 설정 (로컬)
# 서버 포트
PORT=5000
# 데이터베이스 설정
DB_HOST=127.0.0.1
DB_PORT=3307
DB_USER=root
DB_PASSWORD=
DB_NAME=
Putty(SSH) , FileZilla(SFTP)
최규민백업(임시)