From 1207807d507d211ee40ebb5f9d8f99c8a307fc1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=95=9C=EC=9E=AC=EC=9B=90?= Date: Mon, 3 Jan 2022 04:16:52 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=81=AC=EB=A1=A4=EB=A7=81=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=EC=88=98=EC=A0=95=20(=EB=A0=8C=EB=8D=94=EB=A7=81?= =?UTF-8?q?=20=EC=8B=9C=EA=B0=84=EB=B3=B4=EB=8B=A4=20=ED=81=AC=EB=A1=A4?= =?UTF-8?q?=EB=9F=AC=EA=B0=80=20=EB=8D=94=20=EB=B9=A0=EB=A5=B8=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 22 +++++++++++----------- app/views/crawler.py | 2 ++ dev_record.md | 6 ++++-- 3 files changed, 17 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 8cf7fc94..b6d47098 100644 --- a/README.md +++ b/README.md @@ -174,23 +174,24 @@
## ⚙ 시스템 아키텍처 + + -![PG 아키텍처](https://user-images.githubusercontent.com/71180414/125759854-a7b24966-b2ca-4da8-884d-0f419f86ad7f.png) - +- Github Actions를 사용하여 CI/CD 파이프라인을 구축하였습니다. - Django의 고유 패턴인 MVT(Model/View/Template)패턴을 사용하였습니다. - 프론트엔드는 Django Template Engine을 사용해 SSR 방식으로 렌더링합니다. - 일일 방문자수 구현을 위해 django-crontab을 사용하였습니다. -- AWS 로드 밸런서와 Nginx를 사용해 로드밸런싱 및 리다이렉팅을 구현하였습니다. +- Nginx를 사용하여 리다이렉트 및 정적 파일을 제공합니다.
## 📜 기술 스택 ### Front, Backend -- Django +- Python 3.9 +- Django 3.1.4 +- MySQL 8.0.25 - AJAX -- MySQL - ### Library - Selenium @@ -201,11 +202,10 @@ - django-crontab ### Infrastructure -- AWS EC2 -- AWS Elastic Load Balancer -- AWS Route 53 -- AWS Certificate Manager +- Github Actions +- AWS EC2, RDS - nginx - uwsgi - +- docker, docker-compose +
diff --git a/app/views/crawler.py b/app/views/crawler.py index 3ad2fe79..75c85772 100644 --- a/app/views/crawler.py +++ b/app/views/crawler.py @@ -19,6 +19,7 @@ def selenium_DHC(id, pw): # 크롬 드라이버 실행 driver = webdriver.Chrome('./dev/chromedriver.exe', options=options) driver.get(url) + time.sleep(0.5) # 키보드 보안 해제 driver.find_element_by_xpath('//*[@id="login_form"]/div[2]/div/div[2]/div[3]/label/span').click() driver.switch_to_alert().dismiss() @@ -84,6 +85,7 @@ def selenium_DHC(id, pw): # 크롬드라이버 열기 driver = webdriver.Chrome('/srv/chromedriver', options=options) driver.get(url) + time.sleep(0.5) # 키보드 보안 해제 driver.find_element_by_xpath('//*[@id="login_form"]/div[2]/div/div[2]/div[3]/label/span').click() driver.switch_to_alert().dismiss() diff --git a/dev_record.md b/dev_record.md index 7396816d..d5241bfd 100644 --- a/dev_record.md +++ b/dev_record.md @@ -6,8 +6,10 @@ ## 개발/업데이트 기록 -## 01/03 -- 서버 이전 및 CI/CD 파이프라인 구축 (v2.0.4 -> v2.1.4) ([자세히](https://github.com/hanjo8813/PleaseGraduate/issues/61)) +### 01/03 +- **version 2.1.4 배포** +- 서버 이전 및 CI/CD 파이프라인 구축 ([자세히](https://github.com/hanjo8813/PleaseGraduate/issues/61)) +- 파일 분리 리팩토링 및 환경별 settings(profile) 분리 ### 12/30 > 총 방문자 수 : `14261` / 총 사용자 수 : `2668`