From 0151ad157aee975d39587af9083cdc9f549da7b8 Mon Sep 17 00:00:00 2001 From: Robby Zambito Date: Sat, 1 Feb 2025 20:45:30 -0500 Subject: Add justfile Make it easier to deploy --- justfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 justfile (limited to 'justfile') diff --git a/justfile b/justfile new file mode 100644 index 0000000..63d27aa --- /dev/null +++ b/justfile @@ -0,0 +1,14 @@ +set dotenv-load := true + +clean: + rm -rf bin/ + +build: + go build -o bin/http-nats-proxy main.go + +deploy: + ssh ${DEPLOY_HOST} "cd ${DEPLOY_DIR} && git pull && just clean build && just run-daemon" + +run-daemon: + pkill http-nats-proxy + nohup ./bin/http-nats-proxy & -- cgit