mirror of
https://git.robbyzambito.me/http-nats-proxy
synced 2025-12-20 08:14:51 +00:00
25 lines
425 B
Makefile
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 &
|
|
|