summaryrefslogtreecommitdiff
path: root/justfile
blob: d51fe151396b66be3a91d3e4a7720f61587dfeaf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
set dotenv-load := true

clean:
	rm -rf bin/

build:
	go build -o bin/http-nats-proxy main.go

deploy:
    ssh -t {{env('DEPLOY_HOST')}} "\
        cd {{env('DEPLOY_DIR')}} && \
        git pull -f --rebase && \
        just clean build run-daemon"

run-daemon:
   pkill http-nats-proxy || true
   ./bin/http-nats-proxy &>> /var/log/http-nats-proxy.log &