X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=deploy.ps1;h=7b4b5568a1c6b5f92dd47ea4983784091139dc9e;hb=33493c8991d8971450fc0eb5114152c9a0faa6b1;hp=6d0cad5c9568d3f72e44ab6e79cd24df9ebc9e33;hpb=b830d3cf071acfe2ba724506bfe6fa08fb0811fd;p=recipes.git diff --git a/deploy.ps1 b/deploy.ps1 index 6d0cad5..7b4b556 100644 --- a/deploy.ps1 +++ b/deploy.ps1 @@ -4,21 +4,20 @@ 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)) { New-Item -ItemType directory -Path $destination } -Copy-Item target/release/rup -Destination $destination -Copy-Item key.secret -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)) {