projects
/
recipes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add an error management in db module
[recipes.git]
/
deploy.ps1
diff --git
a/deploy.ps1
b/deploy.ps1
index
da77557
..
5a11697
100644
(file)
--- 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
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/"
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/"
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"
Write-Output "Deployment finished"