aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2026-07-03 21:57:00 +0530
committerAkshay Nair <phenax5@gmail.com>2026-07-03 22:00:23 +0530
commit317a8a38f4206279a9aea4c7a92ff44f9b78259a (patch)
tree68ab2b64a7e756951a88341e8ec57545bf6b5313 /justfile
parentaf2c070c4170718289aa5d55c3d3c27f46c2ac6b (diff)
downloadbacchus-remote-317a8a38f4206279a9aea4c7a92ff44f9b78259a.tar.gz
bacchus-remote-317a8a38f4206279a9aea4c7a92ff44f9b78259a.zip
Add cgit with custom theme
Diffstat (limited to 'justfile')
-rw-r--r--justfile24
1 files changed, 24 insertions, 0 deletions
diff --git a/justfile b/justfile
new file mode 100644
index 0000000..6554cae
--- /dev/null
+++ b/justfile
@@ -0,0 +1,24 @@
+set dotenv-load
+set positional-arguments
+
+TARGET_DIR := "/opt/project"
+
+ssh *args:
+ ssh -p "$SSH_PORT" "${SSH_USER}@${SSH_HOST}" "$@"
+
+shell: ssh
+
+copy *args:
+ rsync -ravh --delete --exclude '.git' -e "ssh -p $SSH_PORT" "$@"
+
+df:
+ just ssh 'df -ah /'
+
+upload:
+ just copy . "${SSH_USER}@${SSH_HOST}:{{TARGET_DIR}}"
+
+start-remote:
+ just ssh "{{TARGET_DIR}}/setup.sh" start
+
+setup *args:
+ just ssh "{{TARGET_DIR}}/setup.sh" "$@"