Files
http-nats-proxy/justfile
Robby Zambito 0facd7006e Deploy on FreeBSD better
Added some changes that should help with deploying on FreeBSD.
Before it was holding onto my shell that I ran just deploy from, and killed the proc when I hit ctrl+c.
2025-02-16 12:49:17 -05:00

19 lines
356 B
Makefile

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 &