Skip to content

Commit

Permalink
#33 Reverted application.yml since the environment variables should r…
Browse files Browse the repository at this point in the history
…emain there
  • Loading branch information
valentinacupac committed Jun 27, 2022
1 parent c239ffb commit 020173d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@ We implement a Banking system with the following use cases:

## Environment variables

When you open up the file `application.yml` we can see the usage of the following environment variables for the Postgres Database

```
url: ${POSTGRES_URL}
username: ${POSTGRES_USER}
password: ${POSTGRES_PASSWORD}
```

To be able to run the tests (since some of the tests are dependent on the database - the integration tests), we then need to set the environment variables.

In IntelliJ, for the `Tests in 'banking-kata.test'` configuration, you can copy this into the `Environment variables`
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
spring:
datasource:
url: jdbc:postgresql://localhost:5432/postgres
username: postgres
password: postgres
url: ${POSTGRES_URL}
username: ${POSTGRES_USER}
password: ${POSTGRES_PASSWORD}
driver-class-name: org.postgresql.Driver

jpa:
Expand Down

0 comments on commit 020173d

Please sign in to comment.