Use variable for olimex ssh url
This commit is contained in:
parent
58ecc95cc2
commit
26218bcbd3
14
red/justfile
14
red/justfile
|
@ -1,16 +1,18 @@
|
||||||
|
url := "olimex@muele.local"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
cargo build --target=armv7-unknown-linux-gnueabihf
|
cargo build --target=armv7-unknown-linux-gnueabihf
|
||||||
|
|
||||||
rrun:
|
rrun:
|
||||||
#scp -r ./src olimex@muele.local:red/
|
#scp -r ./src {{url}}:red/
|
||||||
rsync -rvu --filter=':- .gitignore' ../red olimex@muele.local:
|
rsync -rvu --filter=':- .gitignore' ../red {{url}}:
|
||||||
ssh olimex@muele.local "cd red; /home/olimex/.cargo/bin/cargo run;"
|
ssh {{url}} "cd red; /home/olimex/.cargo/bin/cargo run;"
|
||||||
|
|
||||||
rdown:
|
rdown:
|
||||||
ssh olimex@muele.local "sudo /usr/sbin/poweroff"
|
ssh {{url}} "sudo /usr/sbin/poweroff"
|
||||||
|
|
||||||
mount:
|
mount:
|
||||||
sshfs olimex@muele.local:/ mount
|
sshfs {{url}}:/ mount
|
||||||
|
|
||||||
login:
|
login:
|
||||||
ssh olimex@muele.local
|
ssh {{url}}
|
||||||
|
|
Loading…
Reference in a new issue