Skip to content

Commit 561648c

Browse files
author
Nick Grippin
authored
Merge pull request cfpb#1050 from schbetsy/prod-defaults
Env variables default to prod values
2 parents 88afb49 + cf9a966 commit 561648c

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ export ZOOKEEPER_HOST=192.168.99.100
144144
export ZOOKEEPER_PORT=2181
145145
```
146146

147+
* If you want to use the sample files in this repo for testing the app, run the edits in demo mode. Otherwise, edit S025 will trigger for all files.
148+
149+
```shell
150+
export EDITS_DEMO_MODE=true
151+
```
152+
147153
* Start `sbt`
148154

149155
```shell

api/src/main/resources/application.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ hmda {
6262
timeout = 10
6363
timeout = ${?HMDA_HTTP_TIMEOUT}
6464
}
65-
isDemo = true
65+
isDemo = false
6666
isDemo = ${?HMDA_IS_DEMO}
6767
zookeeperHost = "192.168.99.100"
6868
zookeeperHost = ${?ZOOKEEPER_HOST}

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ services:
2020
CASSANDRA_CLUSTER_HOSTS: cassandra
2121
CASSANDRA_CLUSTER_PORT: 9042
2222
HMDA_IS_DEMO: 'true'
23+
EDITS_DEMO_MODE: 'true'
2324
# lb settings
2425
EXCLUDE_PORTS: '8080, 8081' # 8080 proxied through auth_proxy; 8081 (Admin API) doesn't need proxy
2526
VIRTUAL_HOST: 'https://*:4443/public/*'

persistence-model/src/main/resources/application.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,6 @@ cassandra-query-journal {
101101
hmda {
102102
actor-lookup-timeout = 5
103103
persistent-actor-timeout = 3600
104-
isDemo = true
104+
isDemo = false
105105
isDemo = ${?HMDA_IS_DEMO}
106106
}

0 commit comments

Comments
 (0)