Files
http-nats-proxy/justfile
Robby Zambito 9fd7875271 Add run and default targets
run is useful for local testing
2025-02-22 09:55:52 -05:00

25 lines
425 B
Makefile

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 &