mirror of
https://git.robbyzambito.me/http-nats-proxy
synced 2025-12-20 08:14:51 +00:00
Add justfile
Make it easier to deploy
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
bin/
|
||||
.env
|
||||
14
justfile
Normal file
14
justfile
Normal 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 &
|
||||
Reference in New Issue
Block a user