Skip to content

Commit

Permalink
Merge pull request #285 from JNU-econovation/feature/BE-104
Browse files Browse the repository at this point in the history
[BE-107] 포트폴리오 파일 경로 환경 변수 설정
  • Loading branch information
rlajm1203 authored Sep 27, 2024
2 parents e92eeff + 43640e1 commit 4f4599e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ public class FinalEmailDiscussionEmailScheduler {

private File attachment;

@Value("${econovation.file.path.portfolio}")
private String filePath;

@Retryable(value = Exception.class, maxAttempts = 3, backoff = @Backoff(delay = 30000))
@SneakyThrows
@Async
Expand Down Expand Up @@ -72,7 +75,6 @@ public void handle() {
// 포트폴리오 파일을 가져오는 메서드
private File getPortfolioFile() {
// applicant에서 포트폴리오 파일 경로나 ID 등을 이용해 파일을 가져오는 로직
String filePath = "./server/Recruit-Api/src/main/resources/static/mail/portfolio.pdf";
return new File(filePath);
}

Expand Down
9 changes: 9 additions & 0 deletions server/Recruit-Api/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ spring:
config:
activate:
on-profile: local
econovation:
file:
path:
portfolio: ${ECONOVATION_PORTFOLIO_PATH:./portfolio.pdf}
#logging:
# level:
# root: info
Expand All @@ -114,6 +118,11 @@ spring:
logging:
level:
ROOT: WARN

econovation:
file:
path:
portfolio: ${ECONOVATION_PORTFOLIO_PATH:/app/resources/static/mail/portfolio.pdf}
---
spring:
config:
Expand Down

0 comments on commit 4f4599e

Please sign in to comment.