aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
Diffstat (limited to '')
-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" "$@"