Use variable for olimex ssh url

This commit is contained in:
Frederik Menke 2023-05-06 20:19:17 +02:00
parent 58ecc95cc2
commit 26218bcbd3

View file

@ -1,16 +1,18 @@
url := "olimex@muele.local"
build:
cargo build --target=armv7-unknown-linux-gnueabihf
rrun:
#scp -r ./src olimex@muele.local:red/
rsync -rvu --filter=':- .gitignore' ../red olimex@muele.local:
ssh olimex@muele.local "cd red; /home/olimex/.cargo/bin/cargo run;"
#scp -r ./src {{url}}:red/
rsync -rvu --filter=':- .gitignore' ../red {{url}}:
ssh {{url}} "cd red; /home/olimex/.cargo/bin/cargo run;"
rdown:
ssh olimex@muele.local "sudo /usr/sbin/poweroff"
ssh {{url}} "sudo /usr/sbin/poweroff"
mount:
sshfs olimex@muele.local:/ mount
sshfs {{url}}:/ mount
login:
ssh olimex@muele.local
ssh {{url}}