Add a common crate
[recipes.git] / deploy.ps1
index 6d0cad5..e066f1d 100644 (file)
@@ -4,19 +4,18 @@ 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