diff options
Diffstat (limited to 'justfile')
-rw-r--r-- | justfile | 14 |
1 files changed, 14 insertions, 0 deletions
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 & |