diff options
-rw-r--r-- | justfile | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -7,8 +7,12 @@ 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" + ssh -t {{env('DEPLOY_HOST')}} "\ + cd {{env('DEPLOY_DIR')}} && \ + git pull -f --rebase && \ + just clean build run-daemon" run-daemon: - pkill http-nats-proxy - nohup ./bin/http-nats-proxy & + pkill http-nats-proxy || true + ./bin/http-nats-proxy &>> /var/log/http-nats-proxy.log & + |