mirror of
https://git.robbyzambito.me/http-nats-proxy
synced 2025-12-21 08:44:50 +00:00
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.
This commit is contained in:
10
justfile
10
justfile
@@ -7,8 +7,12 @@ build:
|
|||||||
go build -o bin/http-nats-proxy main.go
|
go build -o bin/http-nats-proxy main.go
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
ssh ${DEPLOY_HOST} "cd ${DEPLOY_DIR} && git pull && just clean build && just run-daemon"
|
ssh -t {{env('DEPLOY_HOST')}} "\
|
||||||
|
cd {{env('DEPLOY_DIR')}} && \
|
||||||
|
git pull -f --rebase && \
|
||||||
|
just clean build run-daemon"
|
||||||
|
|
||||||
run-daemon:
|
run-daemon:
|
||||||
pkill http-nats-proxy
|
pkill http-nats-proxy || true
|
||||||
nohup ./bin/http-nats-proxy &
|
./bin/http-nats-proxy &>> /var/log/http-nats-proxy.log &
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user