client-side management scripts
This commit is contained in:
parent
588ec52511
commit
8e81294cbd
21
admin/client_edit.fish
Normal file
21
admin/client_edit.fish
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
|
cd $TREEHOUSE_PATH
|
||||||
|
|
||||||
|
echo
|
||||||
|
set_color white --bold; echo "* Running editor"; set_color normal
|
||||||
|
eval $EDITOR content/index.tree
|
||||||
|
|
||||||
|
echo
|
||||||
|
set_color white --bold; echo "* Fixing the tree"; set_color normal
|
||||||
|
cargo run -p treehouse fix-all --apply
|
||||||
|
|
||||||
|
echo
|
||||||
|
set_color white --bold; echo "* Committing changes"; set_color normal
|
||||||
|
git add content
|
||||||
|
git commit
|
||||||
|
git push
|
||||||
|
|
||||||
|
echo
|
||||||
|
set_color white --bold; echo "* Uploading to server"; set_color normal
|
||||||
|
fish admin/client_sync.fish
|
3
admin/client_sync.fish
Normal file
3
admin/client_sync.fish
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
|
ssh $TREEHOUSE_SERVER -p $TREEHOUSE_SERVER_PORT 'fish' '$TREEHOUSE_PATH/admin/server_sync.fish'
|
Loading…
Reference in a new issue