From 6c9d0a19b2599f41e38525ff9a8a5a93c1984c05 Mon Sep 17 00:00:00 2001
From: KronosDP <darrel.danadyaksa19@gmail.com>
Date: Wed, 26 Feb 2025 13:37:11 +0700
Subject: [PATCH] add: create application properties for different environments

---
 src/main/resources/application-dev.properties     | 12 ++++++++++++
 src/main/resources/application-prod.properties    |  1 +
 src/main/resources/application-staging.properties |  1 +
 src/main/resources/application.properties         |  2 +-
 4 files changed, 15 insertions(+), 1 deletion(-)
 create mode 100644 src/main/resources/application-dev.properties
 create mode 100644 src/main/resources/application-prod.properties
 create mode 100644 src/main/resources/application-staging.properties

diff --git a/src/main/resources/application-dev.properties b/src/main/resources/application-dev.properties
new file mode 100644
index 0000000..a0f2b58
--- /dev/null
+++ b/src/main/resources/application-dev.properties
@@ -0,0 +1,12 @@
+spring.application.name=authentication
+
+spring.datasource.url=${DB_URL}
+spring.datasource.username=${DB_PASSWORD}
+spring.datasource.password=${DB_PASSWORD}
+
+spring.datasource.driver-class-name=org.postgresql.Driver
+spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
+
+# Hibernate Properties
+spring.jpa.hibernate.ddl-auto=update
+spring.jpa.show-sql=true
\ No newline at end of file
diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties
new file mode 100644
index 0000000..c12917a
--- /dev/null
+++ b/src/main/resources/application-prod.properties
@@ -0,0 +1 @@
+spring.application.name=authentication
\ No newline at end of file
diff --git a/src/main/resources/application-staging.properties b/src/main/resources/application-staging.properties
new file mode 100644
index 0000000..c12917a
--- /dev/null
+++ b/src/main/resources/application-staging.properties
@@ -0,0 +1 @@
+spring.application.name=authentication
\ No newline at end of file
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index 0ade39d..c12917a 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -1 +1 @@
-spring.application.name=authentication
+spring.application.name=authentication
\ No newline at end of file
-- 
GitLab