summaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
authorRobby Zambito <contact@robbyzambito.me>2025-03-02 15:53:19 -0500
committerRobby Zambito <contact@robbyzambito.me>2025-03-02 16:03:18 -0500
commit55f0a026cbfa4d0a5681f8cb7919e623382a139e (patch)
treeb93c32aa4f7d5b0229f5ff2e06e9b58da71cb2af /justfile
parentac7fca9281c64412b5d4f0c7e718e87945dd28b0 (diff)
Added changes for remote deployment
Added example env files Added justfile changes for deployment Added changes in main to support auth methods
Diffstat (limited to 'justfile')
-rw-r--r--justfile17
1 files changed, 16 insertions, 1 deletions
diff --git a/justfile b/justfile
index 6053b77..ce907b7 100644
--- a/justfile
+++ b/justfile
@@ -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