From 3f4ef22bcedc539379dc1917f64b686df0bf5f3c Mon Sep 17 00:00:00 2001 From: "Max D." Date: Fri, 26 Jul 2024 16:49:50 +0200 Subject: [PATCH 1/2] Add datasource for 'foo' --- .../docs/asciidoc/core-quarkus/quarkus-profile.adoc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/quarkus-workshop-super-heroes/docs/src/docs/asciidoc/core-quarkus/quarkus-profile.adoc b/quarkus-workshop-super-heroes/docs/src/docs/asciidoc/core-quarkus/quarkus-profile.adoc index 1f91b01f2..93e125bc7 100644 --- a/quarkus-workshop-super-heroes/docs/src/docs/asciidoc/core-quarkus/quarkus-profile.adoc +++ b/quarkus-workshop-super-heroes/docs/src/docs/asciidoc/core-quarkus/quarkus-profile.adoc @@ -36,7 +36,17 @@ Now, you will get the `dev` profile enabled if you start your application in dev If you start the tests, the `test` profile is enabled (the `multiplier` is set to 1). You can also create your own profiles, and activate them with the `quarkus.profile` property. -For example, to use a profile called `foo`, package your application with `./mvnw package`, and start it with `java -Dquarkus.profile=foo -jar target/quarkus-app/quarkus-run.jar`. +For example, to use a profile called `foo`, add the datasource for foo profile + +```java +%foo.quarkus.datasource.username=superbad +%foo.quarkus.datasource.username=superbad +%foo.quarkus.datasource.password=superbad +%foo.quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/villains_database +%foo.quarkus.hibernate-orm.sql-load-script=import.sql +``` + +package your application with `./mvnw package`, and start it with `java -Dquarkus.profile=foo -jar target/quarkus-app/quarkus-run.jar`. You will see that the `foo` profile is enabled. As not overridden, the `level.multiplier` property has the value 0.5. From ca382700ee15f030a1d439c8a3c00c864cb03fb3 Mon Sep 17 00:00:00 2001 From: "Max D." Date: Thu, 1 Aug 2024 12:37:01 +0200 Subject: [PATCH 2/2] Add datasource for 'foo' --- .../docs/src/docs/asciidoc/core-quarkus/quarkus-profile.adoc | 1 - 1 file changed, 1 deletion(-) diff --git a/quarkus-workshop-super-heroes/docs/src/docs/asciidoc/core-quarkus/quarkus-profile.adoc b/quarkus-workshop-super-heroes/docs/src/docs/asciidoc/core-quarkus/quarkus-profile.adoc index 93e125bc7..f85691e1b 100644 --- a/quarkus-workshop-super-heroes/docs/src/docs/asciidoc/core-quarkus/quarkus-profile.adoc +++ b/quarkus-workshop-super-heroes/docs/src/docs/asciidoc/core-quarkus/quarkus-profile.adoc @@ -40,7 +40,6 @@ For example, to use a profile called `foo`, add the datasource for foo profile ```java %foo.quarkus.datasource.username=superbad -%foo.quarkus.datasource.username=superbad %foo.quarkus.datasource.password=superbad %foo.quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/villains_database %foo.quarkus.hibernate-orm.sql-load-script=import.sql