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: