diff --git a/Makefile b/Makefile index 11eb097..2e920d3 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,13 @@ - markov: cargo build --release --features trust-x-forwarded-for strip target/release/markov -install: build - rc-service restart markov +install: uninstall + cp -f target/release/markov /usr/local/bin/markov + rc-service start markov + sleep 1 curl -X PUT -d @default http://127.0.0.1:8001/put + +uninstall: + -rc-service stop markov + rm /usr/local/bin/markov