Skip to content

Commit 0a61a2e

Browse files
committed
test apple env
1 parent 34a14fe commit 0a61a2e

File tree

1 file changed

+22
-11
lines changed

1 file changed

+22
-11
lines changed

build.gradle

+22-11
Original file line numberDiff line numberDiff line change
@@ -52,22 +52,33 @@ dependencies {
5252
def activeProfile = System.getenv("SPRING_PROFILES_ACTIVE") ?: "local"
5353

5454
processResources {
55-
println "--------------"
56-
println System.getenv("DATABASE_USERNAME").length()
57-
58-
filesMatching("application.yaml") {
59-
expand(SPRING_PROFILES_ACTIVE: activeProfile)
60-
}
55+
println System.getenv("DATABASE_USERNAME")
56+
println activeProfile
6157

6258
filesMatching("**/application-${activeProfile}.yaml") {
63-
expand([
64-
DATABASE_URL: System.getenv("DATABASE_URL"),
65-
DATABASE_USERNAME: System.getenv("DATABASE_USERNAME"),
66-
DATABASE_PASSWORD: System.getenv("DATABASE_PASSWORD")
67-
])
59+
expand(DATABASE_USERNAME: System.getenv("DATABASE_USERNAME"))
6860
}
6961
}
7062

63+
//def activeProfile = System.getenv("SPRING_PROFILES_ACTIVE") ?: "local"
64+
//
65+
//processResources {
66+
// println "--------------"
67+
// println System.getenv("DATABASE_USERNAME").length()
68+
//
69+
// filesMatching("application.yaml") {
70+
// expand(SPRING_PROFILES_ACTIVE: activeProfile)
71+
// }
72+
//
73+
// filesMatching("**/application-${activeProfile}.yaml") {
74+
// expand([
75+
// DATABASE_URL: System.getenv("DATABASE_URL"),
76+
// DATABASE_USERNAME: System.getenv("DATABASE_USERNAME"),
77+
// DATABASE_PASSWORD: System.getenv("DATABASE_PASSWORD")
78+
// ])
79+
// }
80+
//}
81+
7182
// queryDsl 설정 ↓↓↓
7283
def querydslDir = "src/main/generated"
7384
sourceSets {

0 commit comments

Comments
 (0)