1
1
mirror of https://github.com/srid/rib.git synced 2024-11-25 19:54:33 +03:00

Merge pull request #170 from djanatyn/tutorial-serve-subcommand

Fix tutorial commands
This commit is contained in:
Sridhar Ratnakumar 2021-01-19 17:13:04 -05:00 committed by GitHub
commit bac78402a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ Clone the sample repository locally, install [Nix](https://nixos.org/nix/) (as
described in its README) and run your site as follows:
```bash
nix-shell --run 'ghcid -T ":main serve"'
nix-shell --run 'ghcid -T ":main -wS"'
```
Running this command gives you a local HTTP server at <http://127.0.0.1:8080>
@ -58,7 +58,7 @@ installed.
4. `Rib.App.run`: this parses the CLI arguments and runs the rib CLI "app" which
can be run in one of a few modes --- generating static files, watching the
`content/` directory for changes, starting HTTP server for the `dest/` directory.
The "serve" subcommand will run the Shake build action passed as argument on
The "-wS" options will run the Shake build action passed as argument on
every file change and spin up a HTTP server.
Run that command, and visit <http://127.0.0.1:8080> to view your site.