You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-11Lines changed: 7 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,8 @@ npm run start-local:watch
39
39
40
40
### Optional: Enable Redis cache in local SAM/LocalStack
41
41
42
-
By default, local `start-local` does not provision Redis in CDK. You can still test Redis caching by running Redis in Docker and using environment variables from your shell.
42
+
By default, local `start-local` does not provision Redis in CDK. You can still test Redis caching by running Redis in Docker.
43
+
Local defaults are centralized in `bin/env/local_env.sh`.
43
44
44
45
1. Ensure the docker network exists:
45
46
```
@@ -51,11 +52,9 @@ npm run rdf4j:create-network
51
52
npm run redis:start
52
53
```
53
54
54
-
3. (Optional) override defaults if needed:
55
+
3. (Optional) override defaults in `bin/env/local_env.sh` or per-command, for example:
55
56
```
56
-
export REDIS_ENABLED=true
57
-
export REDIS_HOST=kms-redis-local
58
-
export REDIS_PORT=6379
57
+
REDIS_ENABLED=true REDIS_HOST=kms-redis-local REDIS_PORT=6379 npm run start-local
0 commit comments