Skip to content

Commit

Permalink
docs: add -r flag to entr commands (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
dolphingarlic authored Dec 14, 2021
1 parent 7609ee1 commit d0b863e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/0.1.x/en-US/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ If you want to serve pre-built files (which you'll have to generate with `perseu
All these commands act statically, they don't watch your code for any changes. This feature will be added _very_ soon to the CLI, but until it is, we advise you to use a tool like [`entr`](https://github.com/eradman/entr), which you can make work with Perseus like so (on Linux):

```
find . -not -path "./.perseus/*" -not -path "./target/*" | entr -s "perseus serve"
find . -not -path "./.perseus/*" -not -path "./target/*" | entr -rs "perseus serve"
```

This just lists all files except those in `.perseus/` and `target/` and runs `perseus serve` on any changes. You should exclude anything else as necessary.
2 changes: 1 addition & 1 deletion docs/0.2.x/en-US/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ Right now, the Perseus CLI doesn't support watching files for changes and rebuil
Here's an example of watching files with `entr`:

```
find . -not -path "./.perseus/*" -not -path "./target/*" | entr -s "perseus serve"
find . -not -path "./.perseus/*" -not -path "./target/*" | entr -rs "perseus serve"
```
2 changes: 1 addition & 1 deletion docs/0.3.x/en-US/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ Right now, the Perseus CLI doesn't support watching files for changes and rebuil
Here's an example of watching files with `entr`:

```
find . -not -path "./.perseus/*" -not -path "./target/*" | entr -s "perseus serve"
find . -not -path "./.perseus/*" -not -path "./target/*" | entr -rs "perseus serve"
```
2 changes: 1 addition & 1 deletion docs/next/en-US/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ Right now, the Perseus CLI doesn't support watching files for changes and rebuil
Here's an example of watching files with `entr`:

```
find . -not -path "./.perseus/*" -not -path "./target/*" | entr -s "perseus serve"
find . -not -path "./.perseus/*" -not -path "./target/*" | entr -rs "perseus serve"
```

0 comments on commit d0b863e

Please sign in to comment.