Developer (2) 썸네일형 리스트형 Node.js - Nodemon 사용방법 : 서버 셧다운 필요없는 자동 서버 재실행 in 우분투 나는 우분투 사용자이다 Nodemon 설치 시 발생했던 문제점 적어보았다. 1. npm install nodemon -> 설치 위 명령어로 설치를 하게 되면 nodemone : 명령을 찾을 수 없습니다 해당 에러를 마주하게 된다 . -> npm uninstall nodemon 으로 삭제를 해주고 -> npm install -g nodemone -> 설치 -g : 이건 컴퓨터 전역에서 해당 모듈을 사용할 수 있도록하는 명령어이다. npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories,.. [Docker] : dockerfile 작성-> image 생성 -> Container 생성 및 운영 그리고 DockerHub에 push 마무리 @@@ const express = require('express'); const app = express(); app.get('/',(req,res)=> { res.send("👻 CentumJoonho in Docker !!👻"); }); app.listen(8088,() =>console.log("server is running😈")); -> express 통해서 간단하게 서버를 운영해보았다. docker 사용법 Dockerfile 생성 -> 물론 그전에 Visual Studio Code -> extension -> Docker 설치해야함 FROM node:16-alpine # 사용할 베이스 이미지 WORKDIR /app # 이미지 안에서 어디 경로로 어플리케이션을 복사해 올 것인지 # 레이어 시스템 : 순.. 이전 1 다음