Skip to content

Commit 78c5d5a

Browse files
authored
[25.09.07 / TASK-251] Modify - 주간 메일링 배치 관련 작업들 수정 (#44)
* modify: DJANGO_SETTINGS_MODULE 환경 변수 자체를 추가 * modify: 여타 라이브러리 버전 업데이트 * modify: 리콰 파일 poetry 기반으로 업데이트
1 parent 3f36278 commit 78c5d5a

File tree

6 files changed

+84
-205
lines changed

6 files changed

+84
-205
lines changed

.github/workflows/run-weekly-analysis.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ jobs:
6262
- name: Run Weekly Trend Analysis Batch Script
6363
id: weekly-trend-analysis-main
6464
timeout-minutes: 10
65+
env:
66+
DJANGO_SETTINGS_MODULE: backoffice.settings.prod
6567
run: |
6668
set -e
6769
poetry run python ./insight/tasks/weekly_trend_analysis.py

.github/workflows/run-weekly-newsletter.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ jobs:
6565
- name: Run Weekly Newsletter Batch Script
6666
id: weekly-newsletter-main
6767
timeout-minutes: 48
68+
env:
69+
DJANGO_SETTINGS_MODULE: backoffice.settings.prod
6870
run: |
6971
set -e
7072
poetry run python ./insight/tasks/weekly_newsletter_batch.py

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Velog-Dashboard v2의 데이터, 스크래핑, 백오피스용 레포지토리
1111

1212
- `pyenv``poetry` 가 설치되었다고 가정하고 진행합니다.
1313
- `poetry` 대신 `venv` 로 대체해서 사용가능합니다. (`requirements.txt` 활용)
14+
- 참고로 `poetry` 기반으로 `poetry export -f requirements.txt --without-hashes -o requirements.txt` 통해 배포 require를 만들어야 합니다.
1415

1516
```bash
1617
# 프로젝트 Clone 및 이동

0 commit comments

Comments
 (0)