Files
http-nats-proxy/justfile
Robby Zambito 0151ad157a Add justfile
Make it easier to deploy
2025-02-16 10:05:15 -05:00

15 lines
260 B
Makefile

set dotenv-load := true
clean:
rm -rf bin/
build:
go build -o bin/http-nats-proxy main.go
deploy:
ssh ${DEPLOY_HOST} "cd ${DEPLOY_DIR} && git pull && just clean build && just run-daemon"
run-daemon:
pkill http-nats-proxy
nohup ./bin/http-nats-proxy &