Skip to content

Commit e7f54c2

Browse files
committed
chore : 도메인 수정 및 배포 테스트
1 parent b30cd6c commit e7f54c2

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/main/java/com/back/domain/cocktail/controller/CocktailShareController.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.back.domain.cocktail.repository.CocktailRepository;
44
import com.back.global.rsData.RsData;
55
import lombok.RequiredArgsConstructor;
6+
import org.springframework.beans.factory.annotation.Value;
67
import org.springframework.http.HttpStatus;
78
import org.springframework.http.ResponseEntity;
89
import org.springframework.web.bind.annotation.GetMapping;
@@ -18,13 +19,16 @@
1819
public class CocktailShareController {
1920
private final CocktailRepository cocktailRepository;
2021

22+
@Value("${custom.prod.frontUrl}")
23+
private String frontUrl;
24+
2125
@GetMapping("/{id}/share")
2226
public ResponseEntity<RsData<Map<String, String>>> getShareLink(@PathVariable Long id) {
2327
return cocktailRepository.findById(id)
2428
.map(cocktail -> {
2529
Map<String, String> response = Map.of(
2630
// 공유 URL
27-
"url", "https://www.ssoul.o-r.kr/cocktails/" + cocktail.getId(),
31+
"url", frontUrl +"/cocktails/" + cocktail.getId(),
2832
// 공유 제목
2933
"title", cocktail.getCocktailName(),
3034
// 공유 이미지 (선택)

src/main/resources/application-prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ spring:
1919
driver-class-name: com.mysql.cj.jdbc.Driver
2020
jpa:
2121
hibernate:
22-
ddl-auto: create # 삭제 재성성 과정에서 외래키 제약발생. create 변경 후 배포 테스트
22+
ddl-auto: update # 삭제 재성성 과정에서 외래키 제약발생. create 변경 후 배포 테스트
2323
properties:
2424
hibernate:
2525
show_sql: false

terraform/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ variable "prefix" {
1717

1818
variable "app_1_domain" {
1919
description = "app_1 domain"
20-
default = "api.ssoul.o-r.kr"
20+
default = "api.ssoul.life"
2121
}
2222

2323
variable "s3_bucket_name" {

0 commit comments

Comments
 (0)