Remove the cargo.toml workspace and define common as a library
[recipes.git] / deploy.ps1
diff --git a/deploy.ps1 b/deploy.ps1
deleted file mode 100644 (file)
index 7b4b556..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-if ($args.Count -lt 1) {
-   $scriptName = [Environment]::GetCommandLineArgs()[1]
-   echo "Usage: $scriptName <destination>"
-   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
-