Skip to content

Commit 2106923

Browse files
rgee0alexellis
authored andcommitted
Reorder section 2 of deployment/docker-swarm.md
The current ordering implies to users that they are able to deploy the samples before it is explained that it may take a (small) period of time for the OF stack to download and initialise. This change moves the instruction to deploy the sample functions after the explanation that deploying the stack may take time and means that the user will not try to deploy the sample functions until they have seen the ui, guaranteeing that the gateway is ready. Signed-off-by: rgee0 <[email protected]>
1 parent 6a444ae commit 2106923

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

docs/deployment/docker-swarm.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,23 @@ $ git clone https://github.com/openfaas/faas && \
3838
!!! note
3939
If you want to try newer features you can checkout the `master` branch, but we do not recommend that for first-time users.
4040

41-
To deploy a set of sample functions, [install the OpenFaaS CLI](cli/install/) then deploy the functions in `stack.yml` by running:
42-
43-
```
44-
faas deploy
45-
```
46-
4741
## 2.1 Test out the UI
4842

49-
Within a few seconds (or minutes if on a poor WiFi connection) the API gateway and sample functions will be pulled into your local Docker library and you will be able to access the UI at:
43+
Within a few seconds (or minutes if on a poor WiFi connection) the API gateway and associated OpenFaaS images will be pulled into your local Docker library and you will be able to access the UI at:
5044

5145
`http://127.0.0.1:8080`
5246

5347
!!! tip
5448
If you're running on Linux you may find that accessing `localhost` times out. We recommend using an IPv4 address such as http://127.0.0.1:8080 to prevent any ambiguity.
5549

50+
## 2.2 Deploy the sample functions
51+
52+
The earlier `git clone` included a set of sample functions in `stack.yml`, to deploy them [install the OpenFaaS CLI](cli/install/) and run:
53+
54+
```
55+
faas deploy
56+
```
57+
5658
## 3.0 Start the hands-on labs
5759

5860
Learn how to build serverless functions with OpenFaaS and Python in our half-day workshop. You can follow along online at your own pace.

0 commit comments

Comments
 (0)