From 003468bb683bb68f63d14d5aa8e9e7d6cc00aedf Mon Sep 17 00:00:00 2001 From: Fai Luk Date: Sat, 14 Mar 2026 21:06:42 +0800 Subject: [PATCH] gradlew bootRun # This command can simplily run the backend in cmd now --- build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.gradle b/build.gradle index 6c79443..7907d7f 100644 --- a/build.gradle +++ b/build.gradle @@ -92,3 +92,11 @@ configurations { kotlin { jvmToolchain(17) } + +bootRun { + // Use db-local profile by default so datasource is loaded (application-db-local.yml). + // Override with: ./gradlew bootRun --args='--spring.profiles.active=prod' + if (!project.hasProperty('spring.profiles.active')) { + args '--spring.profiles.active=db-local' + } +}