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
- 톰캣
- Spring
- Access
- Linux
- java
- properties
- IntelliJ
- 맛집
- 도커
- Build
- Profile
- jQuery
- boot
- vrapper
- Eclipse
- maven
- mybatis
- Kotlin
- Tomcat
- 합정
- ls
- docker
- Database
- vi
- Shell
- resttemplate
- grant
- oracle
- vim
- 코틀린
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함