lots of stuff

This commit is contained in:
Sebastian Moser
2024-09-16 12:32:57 +02:00
parent 6f30696487
commit 6d14736a02
9 changed files with 505 additions and 141 deletions

4
deploy
View File

@@ -2,14 +2,14 @@
if [[ "$1" == "a" ]]
then
ssh acern mkdir -p /tmp/victorinix
rsync -rv --exclude="target" ./* acern:/tmp/victorinix/
rsync -rv --exclude="target" --exclude="gitignore" ./* acern:/tmp/victorinix/
path=$(ssh acern nix build /tmp/victorinix#webfiles -L --print-out-paths)
echo doneeeeeeeeeeeeeee
echo path: $path
#scp -r acern:$path/* ocih:host/webserver/webfiles
rsync -rv $path/* ocih:host/webserver/webfiles --rsync-path="sudo rsync"
rsync -rv $path/* ocih:host/webserver/webfiles --rsync-path="sudo rsync"
else
path=$(nix build .#webfiles -L -v --print-out-paths $@)