• Home
  • About
    • Betdon photo

      Betdon

    • Learn More
    • Github
  • Posts
    • All Posts
    • All Tags
  • Projects

pm2 reload restart

21 Nov 2019

터미널 환경에서 서버에 깃 코드를 적용하기 위한 간단한 명령어들.

git log --graph 깃 로그 조회. (그래프까지 보여주는 추가 명령어 포함)
git pull <RemoteName> <BranchName> Pull 실행.
pm2 reload all 서버 프로세스 전체 리로드.


pm2 reload all과 pm2 restart all의 차이점에 대해 궁금해짐.

pm2 reload는 최소한 1개 이상의 프로세스를 유지하며 하나씩 재시작 하는 방식이고
pm2 restart는 모든 프로세스를 죽인다음 다시 시작하는 방식.
pm2 reload의 장점은 “0-second-downtime reload.”라고 함.
pm2 restart의 장점은 pm2 reload보다 빠르다.

pm2 reload가 타임아웃 될 경우 pm2 restart로 인계.

출처: What is the difference between pm2 restart and pm2 reload



Share Tweet +1