Skip to content

Commit

Permalink
hotfix: EnableScheduling 어노테이션 추가 (#291)
Browse files Browse the repository at this point in the history
* hotfix: EnableScheduling 어노테이션 추가

* chore: dev 배포 테스트

* chore: prod 배포 테스트

* chore: prod 배포 테스트

* chore: prod 배포 테스트

* chore: cicd 파일에서 필요없는 브랜치 삭제
  • Loading branch information
clean2001 authored Feb 16, 2025
1 parent 4ab2bf6 commit fb5bc6f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/aws-cicd-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
pull_request:
branches:
- develop

env:
REGISTRY: "docker.io"
NAMESPACE: "clean01"
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/aws-cicd-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ on:
push:
branches:
- main
- refactor/LA-38

pull_request:
branches:
- main
- refactor/LA-38

env:
REGISTRY: "docker.io"
Expand Down
4 changes: 2 additions & 2 deletions layer-api/infra/development/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if [ -z $IS_GREEN ];then # blue라면
sudo nginx -s reload

echo "5. blue container down"
sudo docker-compose -f docker-compose-blue.yaml rm -s -f layer-api-blue batch-job-blue admin-app-blue
sudo docker-compose -f docker-compose-blue.yaml rm -s -f layer-api-blue
else
echo "### GREEN => BLUE ###"
echo "1. get blue image"
Expand Down Expand Up @@ -62,5 +62,5 @@ else
sudo nginx -s reload

echo "5. green container down"
sudo docker-compose -f docker-compose-green.yaml rm -s -f layer-api-green batch-job-green admin-app-green
sudo docker-compose -f docker-compose-green.yaml rm -s -f layer-api-green
fi
4 changes: 2 additions & 2 deletions layer-api/infra/production/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if [ -z $IS_GREEN ];then # blue라면
sudo nginx -s reload

echo "5. blue container down"
sudo docker-compose -f docker-compose-blue.yaml rm -s -f layer-api-blue batch-job-blue admin-app-blue
sudo docker-compose -f docker-compose-blue.yaml rm -s -f layer-api-blue
else
echo "### GREEN => BLUE ###"
echo "1. get blue image"
Expand Down Expand Up @@ -62,5 +62,5 @@ else
sudo nginx -s reload

echo "5. green container down"
sudo docker-compose -f docker-compose-green.yaml rm -s -f layer-api-green batch-job-green admin-app-green
sudo docker-compose -f docker-compose-green.yaml rm -s -f layer-api-green
fi
2 changes: 2 additions & 0 deletions layer-api/src/main/java/org/layer/LayerApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@OpenAPIDefinition(servers = {
@Server(url = "http://localhost:8080", description = "로컬서버"),
Expand All @@ -17,6 +18,7 @@
})
@SpringBootApplication
@EnableJpaAuditing
@EnableScheduling
@EnableAspectJAutoProxy
@EnableFeignClients
@EnableAsync
Expand Down

0 comments on commit fb5bc6f

Please sign in to comment.