From 2dd1f70eeec137162a476e31d9345069977130e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Fri, 4 Dec 2020 17:15:08 +0100 Subject: [PATCH] Updated --- restservice/src/main/resources/application-prod.properties | 6 +++--- restservice/src/main/resources/application.properties | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/restservice/src/main/resources/application-prod.properties b/restservice/src/main/resources/application-prod.properties index 8ea6d44..b944224 100644 --- a/restservice/src/main/resources/application-prod.properties +++ b/restservice/src/main/resources/application-prod.properties @@ -1,7 +1,7 @@ spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect -spring.datasource.url=jdbc:mysql://localhost:3306/test?useUnicode=yes&characterEncoding=UTF-8 -spring.datasource.username=root -spring.datasource.password=example +spring.datasource.url = jdbc:mysql://${PLANNAPLAN_MYSQL_DB_HOST}:${PLANNAPLAN_MYSQL_DB_PORT}/${PLANNAPLAN_MYSQL_DB}?useUnicode=yes&characterEncoding=UTF-8 +spring.datasource.username = ${PLANNAPLAN_MYSQL_DB_USERNAME} +spring.datasource.password = ${PLANNAPLAN_MYSQL_DB_PASSWORD} spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.jpa.open-in-view=true spring.jpa.hibernate.ddl-auto=create-drop diff --git a/restservice/src/main/resources/application.properties b/restservice/src/main/resources/application.properties index 257b306..a015c68 100755 --- a/restservice/src/main/resources/application.properties +++ b/restservice/src/main/resources/application.properties @@ -1 +1 @@ -spring.profiles.active=dev \ No newline at end of file +spring.profiles.active=prod \ No newline at end of file