배포하기(2)
-
EC2 ubuntu 인스턴스 & Docker compose & Docker hub
EC2 인스턴스를 ubuntu 로 생성한다. https://muyeon95.tistory.com/187 AWS EC2 배포하기 선행작업 https://muyeon95.tistory.com/186 github SSH Repository [ git ] - 우선 repository 를 생성한다. - SSH 키를 발급받는다. 생성한 repository 를 사용하기 위해서 로컬환경에서 깃허브를 사용하기 위해 인증을 muyeon95.tistory.com Dockerfile FROM node:18-buster WORKDIR /app COPY . . RUN npm i RUN npm i pm2 -g RUN npm run build RUN npm run migration:run EXPOSE 8080 COPY .env /a..
2023.08.14 -
AWS EC2 배포하기
선행작업 https://muyeon95.tistory.com/186 github SSH Repository [ git ] - 우선 repository 를 생성한다. - SSH 키를 발급받는다. 생성한 repository 를 사용하기 위해서 로컬환경에서 깃허브를 사용하기 위해 인증을 받아야 한다. 첫째 Personal access token 을 등록하는 것 둘째 SSH muyeon95.tistory.com https://ap-northeast-2.console.aws.amazon.com/ec2/home?region=ap-northeast-2#Home: https://ap-northeast-2.console.aws.amazon.com/ec2/home?region=ap-northeast-2#Home: ap-n..
2023.06.24