projects
/
recipes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update dependencies
[recipes.git]
/
deploy.ps1
diff --git
a/deploy.ps1
b/deploy.ps1
index
5ef2355
..
527f532
100644
(file)
--- a/
deploy.ps1
+++ b/
deploy.ps1
@@
-4,24
+4,25
@@
if ($args.Count -lt 1) {
exit 1
}
exit 1
}
-systemctl --user stop www-recipes.service
-
git pull
cargo build --release
git pull
cargo build --release
+systemctl --user stop www-recipes.service
+
$destination=$args[0]
if (!(Test-Path -Path $destination)) {
New-Item -ItemType directory -Path $destination
}
$destination=$args[0]
if (!(Test-Path -Path $destination)) {
New-Item -ItemType directory -Path $destination
}
+strip target/release/recipes
Copy-Item target/release/recipes -Destination $destination
Copy-Item target/release/recipes -Destination $destination
-Copy-Item static -Destination $destination -Recurse -Force
+Copy-Item
backend/
static -Destination $destination -Recurse -Force
# Do not overwrite the configuration.
if (!(Test-Path -Path $destination/conf.ron)) {
# Do not overwrite the configuration.
if (!(Test-Path -Path $destination/conf.ron)) {
- Copy-Item conf.ron -Destination $destination
+ Copy-Item
backend/
conf.ron -Destination $destination
}
systemctl --user start www-recipes.service
}
systemctl --user start www-recipes.service