반응형
next.js는 아래 방식으로 운용됩니다.
# 개발 모드
next dev
# 배포 모드
next build
next start
배포시 'next start' command를 쳐야하는데, pm2로 해당 command를 어떻게 칠까요?
# package.json
...
"scripts":{
"start" : "next start"
}
...
# pm2 command
pm2 start npm --name "app name" -- start
이상입니다
'개발' 카테고리의 다른 글
[Python] system error: 9 Bad file descriptor (0) | 2022.06.04 |
---|---|
[python] background process in python - (1) (0) | 2022.06.01 |
[Cookie] set-cookie not working (0) | 2022.04.29 |
[개발] origin, ip, site 삼형제 (0) | 2022.04.28 |
[Proxy] Proxy 종류 (0) | 2022.04.27 |