30 lines
548 B
Makefile
30 lines
548 B
Makefile
shell server:
|
|
ssh crony@{{server}}
|
|
|
|
forward port server:
|
|
ssh -N -L {{port}}:127.0.0.1:{{port}} root@{{server}}
|
|
|
|
deploy server:
|
|
deploy ".#{{server}}" --magic-rollback=false -s
|
|
|
|
deploy-force server:
|
|
deploy ".#{{server}}" --magic-rollback=false --auto-rollback=false -s
|
|
|
|
deploy-all:
|
|
deploy "." --magic-rollback=false -s
|
|
|
|
reboot server:
|
|
ssh -t root@{{server}} "reboot"
|
|
|
|
update:
|
|
nh os test -u -a && nh os switch
|
|
|
|
test:
|
|
nh os test -a
|
|
|
|
switch:
|
|
nh os switch -a
|
|
|
|
commit-lock:
|
|
git add flake.lock
|
|
git commit -m "feat: update flake.lock"
|