From 66470d6be51d43cac3e933fcea4e77d7bd50516c Mon Sep 17 00:00:00 2001 From: Flan's server Date: Thu, 8 Oct 2020 12:29:42 +0000 Subject: [PATCH] update makefile --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8ff5952..80c617d 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,17 @@ markov: - cargo build --release --features trust-x-forwarded-for + cargo build --release strip target/release/markov -install: uninstall +install: + rc-service markov stop + cp -f target/release/markov /usr/local/bin/markov + rc-service markov start + +reinstall: uninstall cp -f target/release/markov /usr/local/bin/markov rc-service markov start sleep 0.2 + rm -f /var/nginx/markov.dat curl -X PUT -d @default http://127.0.0.1:8001/put uninstall: