Add justfile

Make it easier to deploy
This commit is contained in:
2025-02-01 20:45:30 -05:00
parent 4f940db063
commit 0151ad157a
2 changed files with 16 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
bin/
.env

14
justfile Normal file
View File

@@ -0,0 +1,14 @@
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 &