diff options
Diffstat (limited to 'justfile')
-rw-r--r-- | justfile | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -1,8 +1,23 @@ +set dotenv-load := true + @default: just --list +clean: + rm -rf bin/ + run: build bin/bluesky-nats-proxy build: - go build -o bin/bluesky-nats-proxy
\ No newline at end of file + go build -o bin/bluesky-nats-proxy + +deploy: + ssh -t {{env('DEPLOY_HOST')}} "\ + cd {{env('DEPLOY_DIR')}} && \ + git pull -f --rebase && \ + just clean build run-daemon" + +run-daemon: + pkill bluesky-nats-proxy || true + ./bin/bluesky-nats &>> /var/log/bluesky-nats-proxy.log &
\ No newline at end of file |