blob: 5939affa55d319b199a6bd0070789188fdee998b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
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 &
|