Elastic Beanstalk CLI을 이용하여 배포하기

2019. 3. 6. 17:10Programming/AWS

2019/03/06 - [Programming/AWS] - Elastic Beanstalk CLI 설치


1. 배포하기전, 설정파일 생성 및 수정


1) requirement.txt 파일 생성


2) django.config 파일 생성

- 디렉토리( .ebextensions ) 생성후, 그 안에, 'django.config' 파일 생성

- django.config 파일 작성


- django.config.py 


3) ALLOWED_HOSTS 변경

- Root디렉토리에서, 프로젝트 이름과 같은 디렉토리로 이동후, settings.py 파일을 수정한다.


- setting.py 



4) 모든 설정을 완료후, 디렉토리 모습



2. 배포하기

- root디렉토리에서 명령어 "$ eb deploy " 실행


- 실행후, 명령어 "$ eb open" 실행하면, 해당 페이지가 열린다.


참고 

https://docs.aws.amazon.com/ko_kr/elasticbeanstalk/latest/dg/create-deploy-python-django.html

'Programming > AWS' 카테고리의 다른 글