티스토리 뷰
java -jar 이런걸로 실행시키면 문제될게 없지만
gradle의 bootRun task를 사용할때 스프링 프로파일 적용 방법입니다
build.gradle에 아래와 같이 설정 추가하면 됩니다.
build.gradle
bootRun {
String activeProfile = System.properties['spring.profiles.active']
systemProperty "spring.profiles.active", activeProfile
}
Dockerfile
ENTRYPOINT ["./gradlew"]
CMD ["bootRun", "-Dspring.profiles.active=prod"]
'개발' 카테고리의 다른 글
도커에서 시간 설정하기 (0) | 2018.10.30 |
---|---|
java.lang.string cannot be cast to com.facebook.react.uimanager.accessibility DelegateUtil$accessibilityRole (0) | 2018.10.24 |
gradle 빌드 환경에서 profile 적용하기 (0) | 2018.10.17 |
docker-compose up 빌드 오류 발생 시 해결 방법 (0) | 2018.10.12 |
git 사용시 .idea 제거하기(workspace.xml 제외) (0) | 2018.09.07 |
web sequence diagram 오픈 (0) | 2018.07.10 |
댓글
공지사항
- Total
- 210,583
- Today
- 5
- Yesterday
- 44
TAG
- Linux
- Spring
- jQuery
- ls
- Profile
- oracle
- grant
- vim
- 합정
- Database
- Eclipse
- maven
- Build
- boot
- Tomcat
- vi
- properties
- 맛집
- java
- 톰캣
- Shell
- 도커
- docker
- IntelliJ
- 코틀린
- 자바
- Kotlin
- Access
- vrapper
- mybatis