Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
xiantang committed May 5, 2024
1 parent 70c53bd commit 683d031
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,20 @@ Should use `\` to escape the `' in the bin. related issue: [#305](https://github
cmd = "/usr/bin/true"
```

### How to Reload the Browser Automatically on Static File Changes

Refer to issue #512 for additional details.

* Ensure your static files in `include_dir`, `include_ext`, or `include_file`.
* Activate the proxy by configuring the following config:

```toml
[proxy]
enabled = true
proxy_port = <air proxy port>
app_port = <your server port>
```

## Development

Please note that it requires Go 1.16+ since I use `go mod` to manage dependencies.
Expand Down

0 comments on commit 683d031

Please sign in to comment.