From e44658641b75076b702e690df166820c1d133f24 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Thu, 26 May 2022 16:40:55 +0200 Subject: feat: Move to actix to enable compression Add compression and enable it by default. Also add `cargo-watch` to watch for changes. --- watch | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'watch') diff --git a/watch b/watch index 5a5076c..a9a0dba 100755 --- a/watch +++ b/watch @@ -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 -- cgit v1.2.3