Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add datasource for 'foo' #566

Merged
merged 2 commits into from
Aug 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down