X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=deploy.ps1;h=e066f1d6128c10c1f739242d23405a5381c5f86a;hb=44826a7edd68c0111273dac0ac4a3a705a6534cf;hp=bd50936e82c15480f989807d3fed29ac909ff60d;hpb=4dcf1f1a22d4e8e8ce14f50051c127b9eed11dca;p=recipes.git diff --git a/deploy.ps1 b/deploy.ps1 index bd50936..e066f1d 100644 --- a/deploy.ps1 +++ b/deploy.ps1 @@ -4,11 +4,11 @@ if ($args.Count -lt 1) { exit 1 } -systemctl --user stop www-recipes.service - git pull cargo build --release +systemctl --user stop www-recipes.service + $destination=$args[0] if (!(Test-Path -Path $destination)) { @@ -16,7 +16,6 @@ if (!(Test-Path -Path $destination)) { } Copy-Item target/release/recipes -Destination $destination -Copy-Item key.secret -Destination $destination Copy-Item static -Destination $destination -Recurse -Force