From f1a1a5079f0d1c5c46a900c2cd2e4fdc6247b966 Mon Sep 17 00:00:00 2001 From: Avril Date: Thu, 8 Oct 2020 09:21:48 +0100 Subject: [PATCH] makefile --- Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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