projects
/
rup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96a5780
)
Automatically stop and start the service when deploying...w
author
www-data
<www-data@ek>
Thu, 8 Aug 2019 14:35:08 +0000
(16:35 +0200)
committer
www-data
<www-data@ek>
Thu, 8 Aug 2019 14:35:08 +0000
(16:35 +0200)
deploy.ps1
patch
|
blob
|
history
diff --git
a/deploy.ps1
b/deploy.ps1
index
a88318d
..
219d4ee
100755
(executable)
--- a/
deploy.ps1
+++ b/
deploy.ps1
@@
-1,3
+1,12
@@
+if ($args.Count -lt 1) {
+ $scriptName = [Environment]::GetCommandLineArgs()[1]
+ echo "Usage: $scriptName <destination>"
+ exit 1
+}
+
+
+systemctl --user stop www-rouleunpet.service
+
git pull
cargo build --release
@@
-16,3
+25,6
@@
Copy-Item static -Destination $destination -Recurse -Force
if (!(Test-Path -Path $destination/conf.ron)) {
Copy-Item conf.ron -Destination $destination
}
+
+systemctl --user start www-rouleunpet.service
+