From b608e9d0898687d93e59e2f4005427218f4a87c9 Mon Sep 17 00:00:00 2001 From: Arsene Tochemey Gandote Date: Wed, 19 Aug 2020 20:27:40 +0000 Subject: [PATCH] add db auto creation env var :tada: --- readme.md | 2 +- service/src/main/resources/application.conf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index ea1e1ba0..3956b29a 100644 --- a/readme.md +++ b/readme.md @@ -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 | diff --git a/service/src/main/resources/application.conf b/service/src/main/resources/application.conf index 218389f5..4ea6cd4a 100644 --- a/service/src/main/resources/application.conf +++ b/service/src/main/resources/application.conf @@ -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} } } } @@ -242,7 +242,7 @@ lagompb { projection { create-tables.auto = false - create-tables.auto = ${?COS_DB_AUTO_CREATE} + create-tables.auto = ${?COS_STORES_AUTO_CREATE} } }