summaryrefslogblamecommitdiff
path: root/justfile
blob: 5939affa55d319b199a6bd0070789188fdee998b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                       


                   





                                               


                          
       



                                     

           


                                                           
set dotenv-load := true

@default:
	just --list

clean:
	rm -rf bin/

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

run: clean build
     ./bin/http-nats-proxy

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 &