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
Updates all Lua examples to use the verify-hello-app action, and the
correct environment variable names.
This allows the flag key/SDK key to be changed as necessary without any
hardcoding.
docker run --rm --name hello-debian --env LD_SDK_KEY="my-sdk-key" --env LD_FLAG_KEY="my-boolean-flag" hello-debian
11
+
docker run --rm --name hello-debian --env LAUNCHDARKLY_SDK_KEY="my-sdk-key" --env LAUNCHDARKLY_FLAG_KEY="my-boolean-flag" hello-debian
12
12
```
13
-
3. **Note:** the SDK key and flag key are passed with environment variables into the container. The `LD_FLAG_KEY` should be a boolean-type flag in your environment. If you don't pass
14
-
`LD_FLAG_KEY`, then the default flag key `my-boolean-flag` will be used.
13
+
3. **Note:** the SDK key and flag key are passed with environment variables into the container. The `LAUNCHDARKLY_FLAG_KEY` should be a boolean-type flag in your environment. If you don't pass
14
+
`LAUNCHDARKLY_FLAG_KEY`, then the default flag key `my-boolean-flag` will be used.
15
15
16
16
You should receive the message:
17
-
> Feature flag is <true/false> for this user context
17
+
> The (flag key) feature flag evaluates to (true/false).
Copy file name to clipboardExpand all lines: examples/hello-haproxy/README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,10 +7,10 @@ We've built a minimal dockerized example of using the Lua SDK with [HAProxy](htt
7
7
1. On the command line from the **root** of the repo, build the image from this directory with `docker build -t hello-haproxy -f ./examples/hello-haproxy/Dockerfile .`.
3. **Note:** the SDK key and flag key are passed with environment variables into the container. The `LD_FLAG_KEY` should be a boolean-type flag in your environment.
12
+
3. **Note:** the SDK key and flag key are passed with environment variables into the container. The `LAUNCHDARKLY_FLAG_KEY` should be a boolean-type flag in your environment.
13
13
4. Open `localhost:8123`in your browser. Toggle the flag on to see a change in the page (refresh the page.)
14
14
15
15
You should receive the message:
16
-
>Feature flag is <true/false>for this user context
16
+
>The (flag key) feature flag evaluates to (true/false).
0 commit comments