Replace exception handling in dev.sh by help in README

This commit is contained in:
Cecile Tonglet 2020-09-21 13:17:58 +02:00
parent 12280a2aea
commit b0284b63cb
2 changed files with 9 additions and 7 deletions

View file

@ -39,6 +39,14 @@ yewprint = { git = "https://github.com/cecton/yewprint.git", branch = "main" }
./dev.sh
```
#### Troubleshooting
- I can't install `cargo-watch` on OSX.
This happens on some machines. Try installing the
[pre-compiled binary](https://github.com/passcod/cargo-watch/releases)
instead.
Roadmap
-------

6
dev.sh
View file

@ -1,9 +1,3 @@
#!/bin/sh
if [[ "$OSTYPE" == "darwin"* ]]; then
# if current OS is `darwin` then avoid running `cargo watch` by default
# refer to: https://github.com/passcod/cargo-watch/issues/129
./build.sh --dev -- --features dev && simple-http-server -i --nocache --cors
else
exec cargo watch -s './build.sh --dev -- --features dev && simple-http-server -i --nocache --cors' -w src
fi