Skip to content

Commit 88a9f9d

Browse files
committed
README: Write "Serve" instructions
1 parent eabab55 commit 88a9f9d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ You can see it live at [https://stake.eosnetwork.com](https://stake.eosnetwork.c
2121
1. [Prerequisites](#prerequisites)
2222
1. [Initialization](#initialization)
2323
1. [Build](#build)
24+
1. [Serve](#serve)
2425
1. [See Also](#see-also)
2526

2627
<!-- contents markdown end -->
@@ -70,6 +71,15 @@ yarn build
7071
```
7172
The "build" generates a `build` folder in the root of the repo that can be uploaded directly to AWS S3 using the web console, AWS CLI, or with something like ~~Terraform~~ Tofu.
7273

74+
### Serve
75+
Running this...
76+
```bash
77+
yarn serve
78+
```
79+
...uses [Caddy](https://caddyserver.com) in `file_server` mode to publish the build artifacts in the `build` folder in the root of the repo at port `8443` to emulate an S3 bucket. You can load this in your browser by nativating to [https://localhost:8443](https://localhost:8443).
80+
81+
Press `[Ctrl]` + `[C]` to stop the server.
82+
7383
## See Also
7484
More resources.
7585
- [aws-cloudwatch-alarm-handler](https://github.com/eosnetworkfoundation/aws-cloudwatch-alarm-handler) lambda

0 commit comments

Comments
 (0)