X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=deploy.ps1;h=5a1169784a5cca5bf8bdcad6795e1d971d014620;hb=3ebbe8172b0430bae5c554925a4582c9fec545f3;hp=da77557ab5b84cd9448131d07280a347e90d9c34;hpb=dcf7523ccf6cae4e7d1d38fcbd85bc0b2d0e1703;p=recipes.git diff --git a/deploy.ps1 b/deploy.ps1 index da77557..5a11697 100644 --- a/deploy.ps1 +++ b/deploy.ps1 @@ -31,13 +31,15 @@ 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") +Invoke-SSH "chmod u+x recipes/recipes" +Invoke-SSH "strip recipes/recipes" +Invoke-SSH "sudo systemctl start recipes" Write-Output "Deployment finished"