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"