aboutsummaryrefslogtreecommitdiff
path: root/justfile
blob: 6554cae5cb3838997b3ef72dc5b19cefe7ef4237 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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" "$@"