Skip to content

Commit

Permalink
Make the database url an environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Oct 16, 2023
1 parent 24e7c52 commit 451c35d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ gradlew.bat bootRun

The following environment variables need to be set prior to running:

* DB_URL
* DB_USERNAME
* DB_PASSWORD
* GOOGLE_API_KEY
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ spring:
datasource:
hikari:
maximum-pool-size: 2
url: "jdbc:postgresql://queenie.db.elephantsql.com:5432/nwshtxej"
url: ${DB_URL:}
username: ${DB_USERNAME:}
password: ${DB_PASSWORD:}
jackson:
Expand Down

0 comments on commit 451c35d

Please sign in to comment.