728x90 반응형 IT/NodeJS10 nodejs 정리 서버자동재시작 (소스 변경시 자동 재시작해줌) npm install supervisor -g npm install nodemon -g 참고( https://backend-intro.vlpt.us/1/03.html ) 사용법 : nodemon 소스파일명 // node HelloServer // chrome에서 127.0.0.1:3000 // http 객체. 웹서버 만들기 let http = require('http'); const hostname = "127.0.0.1"; const port = 4000; let server = http.createServer(function(request, response) { response.writeHead(200, {'Content-Type':'text/html'}.. 2022. 7. 10. 자동 재기동 모듈 nodemon, supervisor 주의사항 : VSCode 의 자동저장기능(파일 -> 자동저장) 을 끄고 사용해라. 안그러면, 글자 바뀔때마다 재기동되는 현상이 발생한다. 설치 : npm install nodemon 사용법 : nodemon 파일명 (js 파일, 확장자 안붙여도 됨.) 2022. 5. 17. 이전 1 2 3 다음 728x90 반응형