Skip to content

Commit

Permalink
Update messaging on specifying a different gateway endpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Stoekl <[email protected]>
  • Loading branch information
Erich Stoekl authored and alexellis committed Apr 10, 2018
1 parent feecf56 commit 6baa7b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lab2.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@ You'll see an ASCII logo generated like this:

You can now test out the CLI, but first a note on alternate gateways URLs:

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.
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:

> 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.
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`
2. Specify the correct endpoint inline with the `-g` or `--gateway` flag: `faas deploy --gateway http://openfaas.endpoint.com:8080`
3. In your deployment YAML file, change the value specified by the `gateway:` object under `provider:`.

### List the deployed functions

Expand Down
2 changes: 1 addition & 1 deletion lab3.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ functions:
* The folder used to build from is called `handler`, this must be a folder not a file
* The Docker image name to be used is under the field `image`

For ease of use the `gateway` URL can be overriden in the YAML file or on the CLI.
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).

Here is the contents of the `handler.py` file:

Expand Down

0 comments on commit 6baa7b3

Please sign in to comment.