Skip to content

Commit

Permalink
add db auto creation env var 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
Tochemey committed Aug 19, 2020
1 parent 7c5b687 commit b608e9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Chief-Of-State heavily relies on the robustness of [lagom-pb](https://github.com
| LOG_LEVEL | The possible values are: _**DEBUG**_, _**INFO**_, _**WARN**_, _**ERROR**_ | DEBUG |
| COS_ADDRESS | container host | 0.0.0.0 |
| COS_PORT | container port | 9000 |
| COS_DB_AUTO_CREATE | when enabled create both writeside journal/snapshot store tables and readside offset store | false |
| COS_STORES_AUTO_CREATE | when enabled create both writeside journal/snapshot store tables and readside offset store if readside settings enabled. | false |
| COS_POSTGRES_USER | journal, snapshot and read side offsets store username | postgres |
| COS_POSTGRES_PASSWORD | journal, snapshot and read side offsets store password | changeme |
| COS_POSTGRES_HOST | journal, snapshot and read side offsets store host | localhost |
Expand Down
4 changes: 2 additions & 2 deletions service/src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ lagom {
persistence {
jdbc {
create-tables.auto = false
create-tables.auto = ${?COS_DB_AUTO_CREATE}
create-tables.auto = ${?COS_STORES_AUTO_CREATE}
}
}
}
Expand Down Expand Up @@ -242,7 +242,7 @@ lagompb {

projection {
create-tables.auto = false
create-tables.auto = ${?COS_DB_AUTO_CREATE}
create-tables.auto = ${?COS_STORES_AUTO_CREATE}
}

}
Expand Down

0 comments on commit b608e9d

Please sign in to comment.