Change the default font + other little things
[recipes.git] / deploy.ps1
index da77557..5a11697 100644 (file)
@@ -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"