X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=deploy.ps1;h=9a47e6b39907434e898aeff37fa2669dcbb8dafc;hb=5e4e0862477f46a6ea477a56f01fd84e720a9546;hp=da77557ab5b84cd9448131d07280a347e90d9c34;hpb=dcf7523ccf6cae4e7d1d38fcbd85bc0b2d0e1703;p=recipes.git diff --git a/deploy.ps1 b/deploy.ps1 index da77557..9a47e6b 100644 --- a/deploy.ps1 +++ b/deploy.ps1 @@ -31,13 +31,16 @@ function Copy-SSH([string]$source, [string]$destination) cargo build --target arm-unknown-linux-gnueabihf --release -# $a = Invoke-Expression ($ssh_command + "ls") -Invoke-SSH("sudo systemctl stop recipes") +Invoke-SSH "sudo systemctl stop recipes" Copy-SSH -source "./target/arm-unknown-linux-gnueabihf/release/recipes" -destination "~/recipes/" + +Invoke-SSH "rm -rf recipes/static" Copy-SSH -source "./backend/static/" -destination "~/recipes/" -Invoke-SSH("chmod u+x recipes/recipes") -Invoke-SSH("sudo systemctl start recipes") +Copy-SSH -source "./backend/sql/" -destination "~/recipes/" + +Invoke-SSH "chmod u+x recipes/recipes" +Invoke-SSH "sudo systemctl start recipes" Write-Output "Deployment finished"