X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=deploy.ps1;h=219d4ee33b87cf8dcd76536cc28cf9413ca77a8d;hb=4579d6b4f5b3e764c3a7c9787ed3d48840777297;hp=a88318d940b8abda044d53084e78dce89a3740c3;hpb=c3ee58ede5ab40d77678d51c3a9a95d1dcb66279;p=rup.git diff --git a/deploy.ps1 b/deploy.ps1 index a88318d..219d4ee 100755 --- a/deploy.ps1 +++ b/deploy.ps1 @@ -1,3 +1,12 @@ +if ($args.Count -lt 1) { + $scriptName = [Environment]::GetCommandLineArgs()[1] + echo "Usage: $scriptName " + 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 +