BAEL-2104: Spring Boot deployment to AWS Beanstalk (#5951)
This commit is contained in:
parent
20e8886165
commit
731a3cd229
|
@ -57,6 +57,27 @@
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>beanstalk</id>
|
||||||
|
<build>
|
||||||
|
<finalName>${project.name}-eb</finalName>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/cloud/config/*.java</exclude>
|
||||||
|
</excludes>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
<profile>
|
<profile>
|
||||||
<id>openshift</id>
|
<id>openshift</id>
|
||||||
<properties>
|
<properties>
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
spring.datasource.url=jdbc:mysql://${rds.hostname}:${rds.port}/${rds.db.name}
|
||||||
|
spring.datasource.username=${rds.username}
|
||||||
|
spring.datasource.password=${rds.password}
|
Loading…
Reference in New Issue