로컬 -> git -> 실서버
이렇게 하고 있는데, 로컬에서는 잘 되지만 실서버에서 pm2 restart <app_name>을 한 뒤에
API가 오류가 났다. pm2 list를 해보면 pm2 status 가 errored 를 뱉고 있다.
먼저, pm2 log를 확인하자.
보통은 다 코드 오류다.
- 로컬에서는 npm install으로 추가 모듈을 설치했는데, 실서버에서는 git pull만 받고 추가 모듈 설치를 안한다든가 (npm_modules가 gitignore에 있음 ㅋㅋ)
- 진짜 코드 오류라든가 ㅋㅋ