Skip to content

Commit

Permalink
Merge pull request #566 from tehcmanmax/main
Browse files Browse the repository at this point in the history
Add datasource for 'foo'
  • Loading branch information
cescoffier authored Aug 19, 2024
2 parents d3ef73c + ca38270 commit 50c3903
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,16 @@ 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.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.

Expand Down

0 comments on commit 50c3903

Please sign in to comment.