gradle 빌드 환경에서 profile 적용하기
java -jar 이런걸로 실행시키면 문제될게 없지만gradle의 bootRun task를 사용할때 스프링 프로파일 적용 방법입니다build.gradle에 아래와 같이 설정 추가하면 됩니다. build.gradlebootRun { String activeProfile = System.properties['spring.profiles.active'] systemProperty "spring.profiles.active", activeProfile } DockerfileENTRYPOINT ["./gradlew"] CMD ["bootRun", "-Dspring.profiles.active=prod"]
개발
2018. 10. 17. 13:43
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- Linux
- properties
- 코틀린
- java
- Build
- Kotlin
- IntelliJ
- Profile
- Access
- 도커
- Spring
- resttemplate
- boot
- 합정
- mybatis
- maven
- Shell
- grant
- vrapper
- Database
- 맛집
- oracle
- vi
- jQuery
- docker
- ls
- vim
- Tomcat
- 톰캣
- Eclipse
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
글 보관함