X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=deploy.ps1;fp=deploy.ps1;h=0000000000000000000000000000000000000000;hb=a372187c8df325929066b1da189d5f81d5e2a822;hp=7b4b5568a1c6b5f92dd47ea4983784091139dc9e;hpb=33493c8991d8971450fc0eb5114152c9a0faa6b1;p=recipes.git diff --git a/deploy.ps1 b/deploy.ps1 deleted file mode 100644 index 7b4b556..0000000 --- a/deploy.ps1 +++ /dev/null @@ -1,28 +0,0 @@ -if ($args.Count -lt 1) { - $scriptName = [Environment]::GetCommandLineArgs()[1] - echo "Usage: $scriptName " - exit 1 -} - -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/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 -} - -systemctl --user start www-recipes.service -