X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=deploy.ps1;h=6f0b5349a0e7eada9c1e974129de9ed8527ca238;hb=d83b56c6428a145b3cf83ffb1dcad0eb095c8054;hp=7b4b5568a1c6b5f92dd47ea4983784091139dc9e;hpb=33493c8991d8971450fc0eb5114152c9a0faa6b1;p=recipes.git diff --git a/deploy.ps1 b/deploy.ps1 index 7b4b556..6f0b534 100644 --- a/deploy.ps1 +++ b/deploy.ps1 @@ -4,7 +4,6 @@ if ($args.Count -lt 1) { exit 1 } -git pull cargo build --release systemctl --user stop www-recipes.service @@ -15,13 +14,14 @@ if (!(Test-Path -Path $destination)) { New-Item -ItemType directory -Path $destination } +strip target/release/recipes Copy-Item target/release/recipes -Destination $destination Copy-Item backend/static -Destination $destination -Recurse -Force # 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