diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2022-05-26 16:40:55 +0200 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2022-05-26 16:40:55 +0200 |
commit | e44658641b75076b702e690df166820c1d133f24 (patch) | |
tree | 4f57d70ef6ccac1fa9ce5d840ffb4e638964c00b /watch | |
parent | d33e4b11bf059e4a7815a771efcef9d079f0e550 (diff) | |
download | macroblog.rs-e44658641b75076b702e690df166820c1d133f24.tar.gz macroblog.rs-e44658641b75076b702e690df166820c1d133f24.tar.bz2 macroblog.rs-e44658641b75076b702e690df166820c1d133f24.zip |
feat: Move to actix to enable compression
Add compression and enable it by default.
Also add `cargo-watch` to watch for changes.
Diffstat (limited to 'watch')
-rwxr-xr-x | watch | 22 |
1 files changed, 8 insertions, 14 deletions
@@ -1,16 +1,10 @@ #!/bin/sh -sigint_handler() -{ - kill $PID - exit -} - -trap sigint_handler SIGINT - -while true; do - cargo run & - PID=$! - inotifywait -e modify -e move -e create -e delete -e attrib -r src/ templates/ content/ - kill $PID -done +case $1 in + actix) + cargo watch -x "run --bin actix" + ;; + *) + cargo watch -x "run --bin hyper" + ;; +esac |