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: lab2.md
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -60,9 +60,11 @@ You'll see an ASCII logo generated like this:
60
60
61
61
You can now test out the CLI, but first a note on alternate gateways URLs:
62
62
63
-
If your gateway is not deployed at http://127.0.0.1:8080 then you will need to specify the `--gateway` flag followed by the alternate URL.
63
+
If your gateway is not deployed at http://127.0.0.1:8080 then you will need to specify the alternative location. There are several ways to accomplish this:
64
64
65
-
> A shorter versions of flags are available most of the time so `--gateway` can be shortened to `-g` too. Check `faas-cli --help` for more information.
65
+
1. Set the environment variable `OPENFAAS_URL` and the `faas-cli` will point to that endpoint in your current shell session. For example: `export OPENFAAS_URL=http://openfaas.endpoint.com:8080`
66
+
2. Specify the correct endpoint inline with the `-g` or `--gateway` flag: `faas deploy --gateway http://openfaas.endpoint.com:8080`
67
+
3. In your deployment YAML file, change the value specified by the `gateway:` object under `provider:`.
Copy file name to clipboardExpand all lines: lab3.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -97,7 +97,7 @@ functions:
97
97
* The folder used to build from is called `handler`, this must be a folder not a file
98
98
* The Docker image name to be used is under the field `image`
99
99
100
-
For ease of use the `gateway` URL can be overriden in the YAML file or on the CLI.
100
+
Remember that the `gateway` URL can be overriden in the YAML file (by editing the `gateway:` value under `provider:`) or on the CLI (by using `--gateway` or setting the `OPENFAAS_URL` environment variable).
0 commit comments