summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--justfile14
2 files changed, 16 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..9f96217
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+bin/
+.env
diff --git a/justfile b/justfile
new file mode 100644
index 0000000..63d27aa
--- /dev/null
+++ b/justfile
@@ -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 &